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)

posted @ 2013-08-30 18:43  瓜王  阅读(151)  评论(0编辑  收藏  举报