About System.Linq.Lookup class
问题 I came across this class while reading a C# book and have some questions. Why is this added into System.Linq namespace and not into usuall Collections namespace? What the intention behind this class is Why this class is not intended for direct instantiation? This is available through the ToLookup extension only, right? 回答1: Purpose of the class: a dictionary where a key can map to multiple values. Think of it as being for grouping rather than one-to-one mapping. Only through ToLookup decision