I have an object with a number of private properties. It has an empty constructor, and a constructor that accepts an instantiated version of itself. I need to assign this new instance to a deep copy of the old instance. Can this be done? Example:
public class Foo
{
private Property p;
public Foo()
{
p = new Property("this and that");
}
public Foo(Foo f)
{
this.Object = f.DeepCopy; // What would this statement be?
}
}
Halp.