-
Shallow Copy
When you Clone a SortedList, Do any changes in the Main SortedList reflect the clone? I understand that the shallow clone will still reference the real objects but the cloned list wont be in sync with any changes done to the real list, is this correct?
-
Changes in the either list (Add,Remove,etc) will not be reflected in the other.
However, any reference type objects that were contained in the original list when it was cloned will be referencing the same object in the cloned list. So changes to the individual objects will be reflected in both lists.
-
Thank You!
That's what I need to know..