Hash table
What is hash table and what are their exact use?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 5, 2012, 2:14 AM EST
Notice that a Hashtable stores everything internally as type System.Object. When retrieving a value, you therefore have to cast it to its actual type. This is unnecessary when using Dictionary
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 5, 2012, 7:48 PM EST
A HashTable collection stores a (Key and Value) pair and uses the "Key" to hash and obtain the storage location.
The "Key" is immutable and cann't have duplicate entries in the HashTable.
it also provided a indexer.
u can learn more from
http://msdn.microsoft.com/en-us/library/7b3y50ay.aspx
hope this help,
Akash AhlawatRank #3,915 · 379 reputationPosted Mar 5, 2012, 10:13 PM EST