Python OrderedDict Analog?

Is there a .net analogue of Python OrderedDict ?

. OrderedDict is a dictionary that remembers the order in which keys were inserted. If a new record overwrites an existing record, the original insertion position remains unchanged. Deleting a record and re-nesting it will move it to the end.

I want this exact behavior.

+7
source share
2 answers
+6
source

There is no general implementation of the OrderedDictionary collection in vanilla .NET, however you can still write your own or use existing solutions:

OrderedDictionary: general implementation of IOrderedDictionary

+3
source

All Articles