Madestro <me_no_like_spam_juanDOTromero@bowneDOTcom> wrote:
Please see System.Collections.Specialized.NameValueCollection
The Specialized namespace contains collections that do what you are looking
for.
It's not quite the same:
1) It only deals with strings
2) It adds multiple values for the same key, comma-separating them
I don't see anything in System.Collections.Specialized which solves the
OP's problem, unless he happens to be looking for strings.
Personally I'd write a class which aggregates a list and a dictionary,
and provide the appropriate access methods. (Care is needed in terms of
what it means to replace the entry at a particular index, etc - it may
be simpler to make it an "add only" type of collection.)
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too