0
Difference between SortedList and Dictionary
What difference? They have similar stucture
1 ответ
+ 3
Игорь Стригин
If the list is populated all at once fromsorted data, SortedList(TKey, TValue)is faster than SortedDictionary(TKey, TValue).
( http://people.cs.aau.dk/~normark/oop-csharp/html/notes/collections-note-time-complexity-dictionaries.html )
Above picture shows that Dictionary<K,V> is equal or faster in every case than Sorted analog, but if order of elements is required, e.g. to print them, Sorted one is chosen.
source:
https://stackoverflow.com/questions/1427147/sortedlist-sorteddictionary-and-dictionary
I hope I was helpful