Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 22nd, 2007, 03:03 AM
GS GS is offline
Authorized User
Join Date: Sep 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with cloning or copying a list


I have a list created within from a container class. The list just contains the field values from the form.

The list is created as below:
List<ProjectEnterpriseCustomFieldContainer> list = EnterpriseCustomFieldsStorege.GetInstance().Projec tEnterpriseCustomFields[
                new Guid(application.ActiveProject.GetServerProjectGui d())];

What I want to do is to copy/ clone the list - but it is not as simple as list.clone() !
Every time the form is edited the container is updated, hence the list is also, so I want a way to keep the values when the form is initially loaded.

I hope this makes sense? Does anybody have any ideas how I can do this?

Old May 23rd, 2007, 11:32 PM
Authorized User
Join Date: May 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to notrosh

I don't think I am quite understanding your question.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloning a XmlTextReader billy_bob_the_3rd XML 0 March 28th, 2006 06:42 PM
cloning a dataset badgolfer ASP.NET 1.0 and 1.1 Basics 1 November 4th, 2004 05:57 PM
copying an excel list balllian Excel VBA 2 October 15th, 2004 02:54 AM
Copying files marclena General .NET 2 June 18th, 2004 08:24 AM
Copying a File, How? xgbnow Visual C++ 3 September 16th, 2003 03:37 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.