What's the difference between SortedDictionary and OrderedDictionary?
Both of them are dictionaries and sorted/ordered, then what is the difference?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
kala swetha6 pointsPosted Mar 22, 2007, 3:26 AM EDT
SortedDictionary and Ordereddictionary both contains key/value pairs. But these key/value pairs are sorted by keys in SortedDictionary but not in Ordereddictionary. Also, Ordereddictionary values can be accessed by using both key or index rather than only key in SortedDictionary or a normal dictionary like hashtable.