key/value collection that allows key string to be updated and retains collection item entry order

  • Thread starter Thread starter dx
  • Start date Start date
D

dx

I'm looking for a collection that stores key/values that allows the key to
be updated and retains collection item entry order.

I want to have a collection where I add like this:

myCollection.Add("temp_1", myObject)

when myObject is saved I have an event that notifies the containing
collection that it's key should be modified.

I want the order of that the items are entered in the collection to be
retained

Thanks In advance for any info,

stan
 
Hmmm... I don't think the built-in collections will let you do that. You may
have to 'roll your own' by implementing the IDictionary and ICollection
interfaces.

Sujit D'Mello
 
Back
Top