What is the difference between Dictionary and Hashtable ?
Murali Poola
Dictionary is a Generic Type where as HashTable is not Both Dictionary & HashTable holds the data like key, value as
Dictionary and Hash table are collection of data structure to hold data as key-value pairs. Dictionary is generic type, hash table is not generic type. We can't use dictionary with web services. In .NET hash table is thread safe for use by multiple reader thread and a single writing thread, while in dictionary public static members are thread safe, but any instance members are not guaranteed to be thread safe.
HashTable takes different datatypes as collection, but Dictionary allows only Specified datatype through out collection.