7 references to GetGrouping
System.Linq (7)
System\Linq\Join.cs (1)
60
Grouping<TKey, TInner>? g = lookup.
GetGrouping
(outerKeySelector(item), create: false);
System\Linq\Lookup.cs (6)
91
lookup.
GetGrouping
(keySelector(item), create: true)!.Add(elementSelector(item));
105
lookup.
GetGrouping
(keySelector(item), create: true)!.Add(item);
119
lookup.
GetGrouping
(key, create: true)!.Add(item);
134
public IEnumerable<TElement> this[TKey key] =>
GetGrouping
(key, create: false) ?? Enumerable.Empty<TElement>();
136
public bool Contains(TKey key) =>
GetGrouping
(key, create: false) is not null;
291
return
GetGrouping
(item.Key, create: false) is { } grouping && grouping == item;