Multiple choice technology programming languages

What’s the .NET datatype that allows the retrieval of data by a unique key?

  1. NamedValueCollection

  2. HashTable

  3. SortedList

  4. I don't know

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

HashTable allows data retrieval by unique key and is the standard .NET collection for key-value pairs. NamedValueCollection is for multiple values per key, SortedList maintains sort order, and the question specifically asks for unique key retrieval which HashTable provides.