Sunday, January 9, 2011

Hashtable in c#.net


A Hashtable is a collection of key-value pairs. In .NET, the class that implements a hash table is the Hashtable class.
Elements can be added to the hash table by calling the Add method passing in the key-value pairs that you want to add.
The objects used as keys must implement
Object.Equals and Object.GetHashCode methods.
The value can be any type.

1 comment:

  1. Really this is a good article, which helps a lot for beginners as me as well as developer. check this link...

    http://mindstick.com/Articles/e54db9d2-181f-4beb-a986-6f969ff3bd8d/?HashTable%20in%20C%20sharp

    Its also helped me in completing my task.
    Thanks Everyone!!

    ReplyDelete