hash table
Use of hashtable in C# , ASP.Net?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lalit MPosted Nov 14, 2009, 1:36 AM
Creating a Hashtable
The Hashtable class in C# represents a hashtable. The following code creates a Hashtable:
private Hashtable hshTable = new Hashtable();
Adding Items to a Hashtable
Add method of Hashtable is used to add items to the hashtable. The method has index and value parameters. The following code adds three items to hashtable.
The Remove method removes an item from a Hashtable. The following code removes item with index "Author1" from the hashtable:
hshTable.Remove("Author1");
Looking through all Items of a Hashtable
The following code loops through all items of a hashtable and reads the values.
more information you will get from this link
Understanding HashTable
Basic Laval