Solved

Deep cloning

Posted on 2007-04-04
3
314 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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.

744 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