Solved

Deep cloning

Posted on 2007-04-04
3
323 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

726 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