ILookup<TKey, TElement> Interface

System.Linq

Represents a collection of elements, grouped by a specified key.

Remarks

The ILookup<TKey, TElement> interface is implemented by the objects that result from a call to the GroupBy extension method. It represents a collection of groups, where each group is identified by a key and contains a sequence of elements that share that key.

ILookup<TKey, TElement> is read-only. It is designed to be an efficient way to represent the results of grouping operations, providing fast lookups of elements by their key.

Type Parameters
TKey
The type of the keys of the elements in the collection.
TElement
The type of the elements in the collection.
Members
Methods
Inheritance

ILookup<TKey, TElement> inherits from: