Lookup Class In LINQ, What is the underlying data structure?

拜拜、爱过 提交于 2020-01-04 02:44:30

问题


What is the underlying data structure of the Lookup Class In LINQ ? Is it a Hash Table?


回答1:


It is a hash table where each bucket contains a linked list and each item is part of a linked list of all item.

In other words, each item in the hash table contains a key, a list of elements, a link to the next item in hash bucket (hashNext), and a link to the next item in the hash table (next).



来源:https://stackoverflow.com/questions/8775395/lookup-class-in-linq-what-is-the-underlying-data-structure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!