hash table
what is hash table & Dictionery??
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.
Hemant KumarPosted Jul 27, 2012, 8:14 AM
Dictionary provides generic types
, whichallows to create dictionary of any type. Where as HashTable will store values in
the form of object. So, while using a collection of primitive types such as
integer, hashtable will have additional cost of boxing and unboxing, where as
dictionary is generic, it will not have additional cost of boxing and
unboxing.
If the collection if of type int,datetime,float etc, Dictionary provides
better performance than hashtable.
If the collection is of type custom object, Both will provide same
performance.
Atul KumarPosted Jul 27, 2012, 7:06 AM
There is generic version available for Dictionary in .net.
Hashtable is a collection of key/value pairs that are organized based on the hash code of the key.