The #SortedList collection stores key-value pairs in the ascending order of key. SortedList class implements #IDictionary & #ICollection interfaces, so elements can be accessed both by key and index.
SortedList key can be of any data type, but you cannot add keys of different data types in the same SortedList.
Internally, SortedList maintains two object[] array, one for keys and another for values...
-~-~~-~~~-~~-~-
Check out:
- LinkedIn Learning: http://bit.ly/2PxsH57
- Pluralsight: http://bit.ly/2EsgjlJ
- Udemy: http://bit.ly/2QP5P5V
- YouTube: http://bit.ly/2pVlkwO
-~-~~-~~~-~~-~-