Copy the property values to another object with C#

Viewed 107610

To copy the property values from one object to another, we usually achieve with following syntax:

ca.pro1 = cb.pro2;
ca.pro2 = cb.pro2;

where ca and cb are of the same class.

Is there any simpler synatx or utility method to help us to achieve the same effect?

Thank you.

5 Answers
Related