I am making one Xelement from another.
But when I am manipulating the new Xelement, it is changing the earlier one also.
private bool myFunction(List<XElement> jobList)
{
List<XElement> tempJobList = new List<XElement>(jobList);
foreach (XElement elements in tempJobList)
{
elements.Attribute("someattribute").Remove();
}
}
Now here , after this if when I will check "jobList" , its attribute is also getting removed. Any suggestions ?