c# copy constructor generator
- by Shawn Mclean
I want to copy values from one object to another object. Something similiar to pass by value but with assignment.
Eg.
PushPin newValPushPin = oldPushPin; //I want to break the reference here.
I was told to write a copy constructor for this. But this class has alot 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?