Re: copy SortedList
- From: "Greg Young" <druckdruckREMOVEgoose@xxxxxxxxxxx>
- Date: Mon, 9 Oct 2006 07:26:11 -0400
Don't think so but someone may have another way .. I have added an extension
method to mine for this.
Cheers,
Greg
<aeshiels@xxxxxxxxx> wrote in message
news:1160392709.673450.173570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks Greg. Ill try that.
Is there another method of copying a SortedList without having to pass
the list via the constructor?
Thanks
Andy
Greg Young wrote:
Since you are just creating a clone of the first I would probably use
http://msdn2.microsoft.com/en-us/library/ms132324.aspx
SortedList<CUser, CUser> userList2 = new SortedList<CUser,
CUser>(userList1);
Cheers,
Greg
<aeshiels@xxxxxxxxx> wrote in message
news:1160390047.467788.309270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I have a SortedList defined as...
SortedList<CUser, CUser> userList = new SortedList<CUser,
CUser>();
...and which to copy it to another sorted list
SortedList<CUser, CUser> userList2 = new SortedList<CUser,
CUser>();
What is the easiest way to do this without iterating through the list
and copying each indiviual item to the new array?
Im a C++ developer and use stl::copy to copy my vectors etc. and was
wondering anything similar in C# (ive had a look on google but didnt
find anything as yet).
Any help would be appreciated. Thanks
Andy.S
.
- References:
- copy SortedList
- From: aeshiels
- Re: copy SortedList
- From: Greg Young
- Re: copy SortedList
- From: aeshiels
- copy SortedList
- Prev by Date: Re: Error accessing Access DB
- Next by Date: setup ask for key during installation
- Previous by thread: Re: copy SortedList
- Next by thread: Re: copy SortedList
- Index(es):
Relevant Pages
|