How to create copy of class object without any reference?
<p>How do I create a copy of a class object without any reference? <code>ICloneable</code> makes a copy of a class object (via shallow copy) but doesn't support deep copying. I am looking for a function that is smart enough to read all members of a class object and make a deep copy to another object without specifying member names.</p>
