The SortedList Collection

The System.Collections.SortedList collection works like HashTable but it differs in that items can be accessed either via the key, or the index items are automatically sorted based on the key, for example, look at the following code:

image

It sorts items based on the key; therefore, it produces the following result:

Alessandro
Del Sole

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.203.137