Multiple choice technology programming languages

What’s The .NET Collection Class That Allows An Element To Be Accessed Using A Unique Key?

  1. SortedList

  2. ArrayList

  3. ListDictionary

  4. HashTable

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

HashTable is the .NET collection class designed specifically for storing and retrieving elements using unique key-value pairs. Unlike ArrayList which uses integer indices, HashTable allows you to access any value directly by its unique key, providing fast lookups through hashing. SortedList also supports key access but maintains sorted order, while ListDictionary is optimized for small collections.