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

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top