What’s the .NET collection class that allows an element to be accessed using a unique key?  
Author Message
Shaantu





PostPosted: Visual C# General, What’s the .NET collection class that allows an element to be accessed using a unique key? Top

What’s the .NET collection class that allows an element to be accessed using a unique key
HashTable.

I believe Dictionary is another class in framework 2.0 that gives the same functionality.



Visual C#11  
 
 
Mattias Sjogren





PostPosted: Visual C# General, What’s the .NET collection class that allows an element to be accessed using a unique key? Top

All types that implement IDictionary or IDictionary<TKey, TValue> fits that description.