How to deep clone interconnected objects in C#?
What is the best way to deep clone an interconnected set of objects? Example: class A { B theB; // optional // ... } class B { A theA; // optional // ... } class Container { A[] a; B[] b; } The obvious thing to do is walk the objects and deep clone everything as I come to it. This creates a problem however -...