Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the primary difference between Dictionary and Hashtable

What is the difference between Dictionary and Hashtable. How can i come to conclusion on which to use?Can anyone please help me?

like image 276
Riya Avatar asked Mar 03 '11 09:03

Riya


1 Answers

The Dictionary class differs from the Hashtable class in more ways than one. In addition to being strongly-typed, the Dictionary also employs a different collision resolution strategy than the Hashtable class, using a technique referred to as chaining.

You can read this article: http://msdn.microsoft.com/en-us/library/ms379571(v=vs.80).aspx#datastructures20_2_topic6

It's really useful.

like image 120
Michael M. Avatar answered Oct 05 '22 03:10

Michael M.