What's the difference between SortedDictionary and OrderedDictionary?
Both of them are dictionaries and sorted/ordered, then what is the difference?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
kala swethaPosted Mar 22, 2007, 7:26 AM
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.