I’m implementing the IEditableObject interface and I want to make a generic method that will know how to clone the object before BeginEdit().
I thought about reflection to iterate all public properties and copy them to a cached object.
Anyone have a better idea?
Above is generic clone method,use that if you know your object is datacontract serializable, or if xml serializable you can use XmlSerializer