1
Reply

What is the difference between Sorted Dictionary and Ordered Dictionary?

Salman Mushtaq

Salman Mushtaq

Oct 18, 2017
511
1

    There are 3 main difference.1. The namespaces OrderedDictionary => System.Collections.Specialized; SortedDictionary => System.Collections.Generic;2. In SortedDictionary key/pair is sorted by key but not in OrderedDictionary.3. In OrderedDictionary values can access either with key or index. In SortedDictionary values are only access through key.

    Salman Mushtaq
    October 18, 2017
    0