What is the .NET collection class that allows an element to be accessed using a unique key?

Options
- HashTable
- ArrayList
- SortedList


CORRECT ANSWER : HashTable

Discussion Board
Unique key (correction)

I meant to say that the SortedList is a collection that contains key/value pairs like the Hashtable but differs because it can be referenced by either the key or index and it is also sorted. But the main point is that it is a collection class that also allows an element to be accessed using a unique key.

Kevin L. Egypt 09-24-2013 10:17 PM

Unique key

A SortedList is a collection that contains key\value pairs just like the Hashtable but it can be referenced by the key OR the index because it is sorted. So the answer to this question would actually be BOTH the HashTable and SortedList.

Kevin L. Egypt 09-24-2013 10:14 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement