Re: Ordered Name/Value pair
Sébastien Lorion <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <[email protected]> |
I think that the fact that Dictionary<> returns the keys in the order they were added is a side effect of the implementation, but this behavior is not guaranteed. Sébastien On 7/26/06, Peter Osucha <[email protected]> wrote: > Dino, > > Doesn't the Dictionary<> class do what you want? > > Peter > > -----Original Message----- > From: Discussion relating to the specifics of the C# and Managed C++ > languages [mailto:[email protected]] On Behalf Of Dean Cleaver > Sent: Tuesday, July 25, 2006 10:13 PM > To: [email protected] > Subject: [DOTNET-CX] Ordered Name/Value pair > > I'm having a brain fade here - I need to add a list of keys and objects to a > list in a given order. I tried a hashtable, but it changes the order, and > the sortedlist will obviously sort them by the key which I don't want. > > Is there another class that uses Name/Value pairs but doesn't change your > order? > > TIA > Dino > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > -- Sébastien Lorion Software Architect / Architecte organique [email protected] =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com