Hash Table in C#
-
Is there any Hash Table in C# and if yes then how do we use it? How do we add and how do we look up in hash table?
-
Is there any Hash Table in C# and if yes then how do we use it? How do we add and how do we look up in hash table?
-
Is there any Hash Table in C# and if yes then how do we use it? How do we add and how do we look up in hash table?
Hi, yes of course, by using the "Hashtable" class. Hashtable myHashTable = new Hashtable(); to instantiate a Hashtable object. myHashTable.Add("theKey", "theValue"); to add an element myHashTable["theKey"]...; to retrieve a "value" usig its "key" myHashTable.Keys; to retrieve the Keys Collection property and myHashTable.Values; to retrieve the Values Collection property Regards. -- modified at 5:03 Friday 14th April, 2006
-
Is there any Hash Table in C# and if yes then how do we use it? How do we add and how do we look up in hash table?
-
Is there any Hash Table in C# and if yes then how do we use it? How do we add and how do we look up in hash table?
Read this: Hashtable class Best regards, Alexey.