G
Guest
Hi there
I have an ArrayList, and I'd wish to make a deep copy. So what I want to end up with is a new collection with the elements being a deep copy of the elements in the copied list
Can I use MemberWiseClone to do that
ArrayList a = new ArrayList()
// ... fill i
ArrayList b = a.MemberWiseClone()
Will be have elements that are clones of the elements in a? If not, how can I achieve this
Thanks
Tom Tempelaere
I have an ArrayList, and I'd wish to make a deep copy. So what I want to end up with is a new collection with the elements being a deep copy of the elements in the copied list
Can I use MemberWiseClone to do that
ArrayList a = new ArrayList()
// ... fill i
ArrayList b = a.MemberWiseClone()
Will be have elements that are clones of the elements in a? If not, how can I achieve this
Thanks
Tom Tempelaere