I'm trying to create a copy of an object using its constructor but when I modify something of the copy, the original object is modified too. I'll be grateful if you can help me, this is my code:
public class XMLStructure
{
public XMLStructure(XMLStructure xmlCopy )
{
this.Action = xmlCopy.Action;
this.Name = xmlCopy.Name;
}
public String Name { get; set; }
public ActionXML Action { get; set; }
}