You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that if an object contains a list (like List), then nothing from it gets copied.
For the sample, I found if the parent has a count of 3 (because i added 3 integers), then the cloned has 0.
Which means that nothing got copied.
If the parent list was List, then what should happen is as follows:
it should loop through the list and add one by one so its a true deep copy.
however, still supporting the safeclone.
The text was updated successfully, but these errors were encountered:
I think biggest challenge with copying collections is with its creation, because generator cannot support some derived types of known collections which can have non standard constructors. It can support usual suspects (List, Array, etc) but that will get you only half the way..
I found that if an object contains a list (like List), then nothing from it gets copied.
For the sample, I found if the parent has a count of 3 (because i added 3 integers), then the cloned has 0.
Which means that nothing got copied.
If the parent list was List, then what should happen is as follows:
it should loop through the list and add one by one so its a true deep copy.
however, still supporting the safeclone.
The text was updated successfully, but these errors were encountered: