Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2004

Tip: Looking for answers? Try searching our database.

Which .NET 1.1 Collections retain the order they were entered?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dx - 28 Sep 2004 20:26 GMT
I'm trying to determine which collection retain the order in which they are
added to the collection. Am I missing something in the MS documents? (like
an interface that defines this?)

Thanks,
Stan
Imran Koradia - 28 Sep 2004 19:44 GMT
Arraylist (unless you sort the elements)

Imran.

> I'm trying to determine which collection retain the order in which they are
> added to the collection. Am I missing something in the MS documents? (like
> an interface that defines this?)
>
> Thanks,
> Stan
dx - 28 Sep 2004 21:18 GMT
And that is the only one? I need access by key/value and index.

> Arraylist (unless you sort the elements)
>
[quoted text clipped - 8 lines]
>> Thanks,
>> Stan
Imran Koradia - 28 Sep 2004 20:48 GMT
There's none in the BCL with those features. You can try one of these:
http://www.codeproject.com/csharp/hashlistarticle.asp
http://www.eggheadcafe.com/articles/20040424.asp

hope that helps..
Imran.

> And that is the only one? I need access by key/value and index.
>
[quoted text clipped - 10 lines]
> >> Thanks,
> >> Stan
Jay B. Harlow [MVP - Outlook] - 28 Sep 2004 23:58 GMT
dx,
Have you tried System.Collections.Specialized.NameValueCollection or
NameObjectCollectionBase?

NameObjectCollectionBase allows you to create a type safe collection that
can be accessed by key or index.

There are a number of other collection classes in
System.Collections.Specialized & System.Collections that may do what you
need...

Hope this helps
Jay

> And that is the only one? I need access by key/value and index.
>
[quoted text clipped - 10 lines]
>>> Thanks,
>>> Stan

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.