Java TreeMap equivalent in C#?

user58817 picture user58817 · Jan 25, 2009 · Viewed 25.5k times · Source

Most places I've consulted say to use SortedList, but the problem is that the program I'm porting actually uses duplicate keys (differentiated by order), which is permissible with TreeMap, but not SortedList.

Any advice?

Answer

AHHP picture AHHP · Nov 18, 2013

Does SortedDictionary class help?