Collection needed - Help please

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need help figuring out which collection to use. Maybe I need to create my
own but here's what I need.

A collection that...
1. provides ability to access values via a key
2. maintains the order in which I add it to the collection (ie when I
iterate through it, they come out the same order in which I put them in)

Help please. Thanks!!!

Marcus
 
Just make a new class that inherits from the CollectionBase class.

You should create an abstracted version of the Add & Remove methods as well
as the Item property to make it easier to use and strongly typed.
 
'System.Collections.Queue' should do the trick.

Yes. Dont invent the wheel :)

Aders
 
Back
Top