a little about hashtable vs dictionary

使用Hashtable没有任何优点,因为在.net2.0以后已经被Dictionary<Tkey,TValue>所代替。

他们两者的区别是,根据stackoverflow

Dictionary relies on chaining (maintaining a list of items for each hash table bucket) to resolve collisions whereas Hashtable
uses rehashing for collision resolution (when a collision occurs, tries another hash function to map the key to a bucket)

原文地址:https://www.cnblogs.com/Benjamin/p/3292184.html