I have a scenario like:
MyClass obj1 = new MyClass();
............//some operations on obj1;
MyClass obj2 = new MyClass();
obj2 = obj1;
I h
Assuming that the types on the object are simple, could you simply write a function that performs a kind of MemberwiseClone e.g.
MyClass obj = new MyClass();
// do your thing
MyClass objCopy = new MyClass();
objCopy.IamInt = obj.IamInt;
objCopy.IamString = obj.IamString;
Also more generally I found this Jon Skeet article very helpful when considering referencing.