Solved

Deep cloning

Posted on 2007-04-04
3
321 Views
Last Modified: 2013-11-26
I have an Object which inherits from system.collections.collectionbase which needs to be deep cloned.
public class a
inherits system.collections.collectionbase
end class

How do i insure that a new copy of the collection is created in the cloned object b.
0
Comment
Question by:visualbasic
3 Comments
 
LVL 22

Accepted Solution

by:
Bill-Hanson earned 50 total points
ID: 18851422
I think you need to iterate over the collection and copy it to the cloned class.  I don't think there is any mechanism out there that will do it automatically.
0
 

Author Comment

by:visualbasic
ID: 18856522
Ya - I came to the same conclusion
Thanks anyway
0
 

Expert Comment

by:SGTOBIN
ID: 22117082
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now