1 type derived from Lookup
System.Linq (1)
System\Linq\Lookup.cs (1)
262internal sealed class CollectionLookup<TKey, TElement> : Lookup<TKey, TElement>, ICollection<IGrouping<TKey, TElement>>, IReadOnlyCollection<IGrouping<TKey, TElement>>
31 references to Lookup
netstandard (1)
netstandard.cs (1)
1037[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Lookup<,>))]
System.Core (1)
System.Core.cs (1)
175[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Lookup<,>))]
System.Linq (29)
System\Linq\Grouping.cs (8)
132private Lookup<TKey, TElement>? _lookup; 151_lookup = Lookup<TKey, TElement>.Create(_source, _keySelector, _elementSelector, _comparer); 189private Lookup<TKey, TSource>? _lookup; 207_lookup = Lookup<TKey, TSource>.Create(_source, _keySelector, _comparer); 245private Lookup<TKey, TElement>? _lookup; 263_lookup = Lookup<TKey, TElement>.Create(_source, _keySelector, _elementSelector, _comparer); 299private Lookup<TKey, TSource>? _lookup; 316_lookup = Lookup<TKey, TSource>.Create(_source, _keySelector, _comparer);
System\Linq\Grouping.SpeedOpt.cs (12)
13Lookup<TKey, TElement>.Create(_source, _keySelector, _elementSelector, _comparer).ToArray(_resultSelector); 16Lookup<TKey, TElement>.Create(_source, _keySelector, _elementSelector, _comparer).ToList(_resultSelector); 19onlyIfCheap ? -1 : Lookup<TKey, TElement>.Create(_source, _keySelector, _elementSelector, _comparer).Count; 25Lookup<TKey, TSource>.Create(_source, _keySelector, _comparer).ToArray(_resultSelector); 28Lookup<TKey, TSource>.Create(_source, _keySelector, _comparer).ToList(_resultSelector); 31onlyIfCheap ? -1 : Lookup<TKey, TSource>.Create(_source, _keySelector, _comparer).Count; 37Lookup<TKey, TElement>.Create(_source, _keySelector, _elementSelector, _comparer).ToArray(); 40Lookup<TKey, TElement>.Create(_source, _keySelector, _elementSelector, _comparer).ToList(); 43onlyIfCheap ? -1 : Lookup<TKey, TElement>.Create(_source, _keySelector, _elementSelector, _comparer).Count; 49Lookup<TKey, TSource>.Create(_source, _keySelector, _comparer).ToArray(); 52Lookup<TKey, TSource>.Create(_source, _keySelector, _comparer).ToList(); 55onlyIfCheap ? -1 : Lookup<TKey, TSource>.Create(_source, _keySelector, _comparer).Count;
System\Linq\GroupJoin.cs (2)
54Lookup<TKey, TInner> lookup = Lookup<TKey, TInner>.CreateForJoin(inner, innerKeySelector, comparer);
System\Linq\Join.cs (2)
54Lookup<TKey, TInner> lookup = Lookup<TKey, TInner>.CreateForJoin(inner, innerKeySelector, comparer);
System\Linq\Lookup.cs (5)
32return Lookup<TKey, TSource>.Create(source, keySelector, comparer); 60return Lookup<TKey, TElement>.Create(source, keySelector, elementSelector, comparer); 82internal static Lookup<TKey, TElement> Create<TSource>(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey>? comparer) 97internal static Lookup<TKey, TElement> Create(IEnumerable<TElement> source, Func<TElement, TKey> keySelector, IEqualityComparer<TKey>? comparer) 111internal static Lookup<TKey, TElement> CreateForJoin(IEnumerable<TElement> source, Func<TElement, TKey> keySelector, IEqualityComparer<TKey>? comparer)