System.LinqRepresents a collection of elements, grouped by a specified key.
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.
TKeyTElementGets the number of keys in the lookup collection.
Gets the sequence of elements that have the specified key in the lookup collection.
keyDetermines whether the lookup collection contains elements for the specified key.
keytrue if the lookup collection contains elements associated with the specified key; otherwise, false.
Returns an enumerator that iterates through the lookup collection.
An enumerator that iterates through the lookup collection.
Returns an enumerator that iterates through the lookup collection.
An enumerator that iterates through the lookup collection.
Gets the sequence of elements that have the specified key in the lookup collection.
keyA sequence of elements that have the specified key.
ILookup<TKey, TElement> inherits from: