2 instantiations of Lookup
System.Core (2)
System\Linq\Enumerable.cs (2)
2189
Lookup<TKey, TElement> lookup = new
Lookup
<TKey, TElement>(comparer);
2197
Lookup<TKey, TElement> lookup = new
Lookup
<TKey, TElement>(comparer);
17 references to Lookup
System.Core (17)
System\Linq\Enumerable.cs (16)
696
Lookup
<TKey, TInner> lookup =
Lookup
<TKey, TInner>.CreateForJoin(inner, innerKeySelector, comparer);
698
Lookup
<TKey, TInner>.Grouping g = lookup.GetGrouping(outerKeySelector(item), false);
726
Lookup
<TKey, TInner> lookup =
Lookup
<TKey, TInner>.CreateForJoin(inner, innerKeySelector, comparer);
974
return
Lookup
<TKey, TSource>.Create(source, keySelector, IdentityFunction<TSource>.Instance, null);
978
return
Lookup
<TKey, TSource>.Create(source, keySelector, IdentityFunction<TSource>.Instance, comparer);
982
return
Lookup
<TKey, TElement>.Create(source, keySelector, elementSelector, null);
986
return
Lookup
<TKey, TElement>.Create(source, keySelector, elementSelector, comparer);
2185
internal static
Lookup
<TKey, TElement> Create<TSource>(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer) {
2189
Lookup
<TKey, TElement> lookup = new Lookup<TKey, TElement>(comparer);
2196
internal static
Lookup
<TKey, TElement> CreateForJoin(IEnumerable<TElement> source, Func<TElement, TKey> keySelector, IEqualityComparer<TKey> comparer) {
2197
Lookup
<TKey, TElement> lookup = new Lookup<TKey, TElement>(comparer);
2504
Lookup
<TKey, TElement> lookup =
Lookup
<TKey, TElement>.Create<TSource>(source, keySelector, elementSelector, comparer);
2531
return
Lookup
<TKey, TElement>.Create<TSource>(source, keySelector, elementSelector, comparer).GetEnumerator();
System\Linq\SequenceQuery.cs (1)
281
if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(
Lookup
<,>.Grouping))