ILookup interface vs IDictionary

后端 未结 2 1491
执念已碎
执念已碎 2021-02-03 16:29

How does the ILookup interface differ from IDictionary?

I don\'t understand what the ILookup interface is meant for.

2条回答
  •  一生所求
    2021-02-03 17:12

    It is much more simpler than IDictionary. It is used by Linq. It only has Contains, Item and Count. IDictionary has Add, Remove, etc.

提交回复
热议问题