ILookup entries can contain multiple elements for each key - each key is mapped to an IEnumerable<TElement> .
As outlined in the comments, ILookup unchanged, while you can update the values ββin an IDictionary (it provides the Add() method and an index that allows you to get settings and values).
In short, their use case is very different - you use the search when you need a 1: N map with values ββthat are fixed and will not (and cannot) change. On the other hand, the dictionary offers a variable mapping of key value pairs 1: 1, so it can be updated to add or remove values.
BrokenGlass Mar 25 2018-11-18T00: 00Z
source share