I want to copy values from one object to another object. Something similar to pass by value but with assignment.
For example:
PushPin newValPushPin = oldPushPin; //I want to break the reference here.
I was told to write a copy constructor for this. But this class has a lot of properties, it will probably take an hour to write a copy constructor by hand.
- Is there a better way to assign an object to another object by value?
- If not, is there a copy constructor generator?
Note: ICloneable is not available in Silverlight.