If there is
struct A { public double[] Data; public int X; }
How can I force a deep copy when using operator= or add instances of A to the container?
The problem is, for example:
A a = new A(); var list = new List<A>(); list.Add(a);
Do I really need to implement my own DeepClone method and call it every time? That would be extremely error prone ...
source share