11 instantiations of Wrapper
System.Linq.Parallel (11)
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
300
Wrapper<TInputOutput> wrappedLeftElement = new
Wrapper
<TInputOutput>(leftElement.First);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (3)
281
Wrapper<TInputOutput> wrappedLeftElem = new
Wrapper
<TInputOutput>(leftElement.First);
308
Wrapper<TInputOutput> wrappedRightElem = new
Wrapper
<TInputOutput>(rightElement.First);
315
_hashLookup.Remove(new
Wrapper
<TInputOutput>(entry.First));
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (2)
356
Wrapper<TInputOutput> wrappedElem = new
Wrapper
<TInputOutput>(elem.First);
373
Wrapper<TInputOutput> wrappedElem = new
Wrapper
<TInputOutput>(elem.First);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
243
Wrapper<TInputOutput> wrappedElem = new
Wrapper
<TInputOutput>(elem.First);
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (4)
334
Wrapper<TGroupKey> key = new
Wrapper
<TGroupKey>(sourceElement.Second);
396
Wrapper<TGroupKey> key = new
Wrapper
<TGroupKey>(sourceElement.Second);
563
Wrapper<TGroupKey> key = new
Wrapper
<TGroupKey>(sourceElement.Second);
638
Wrapper<TGroupKey> key = new
Wrapper
<TGroupKey>(sourceElement.Second);
45 references to Wrapper
System.Linq.Parallel (45)
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (3)
234
private IEnumerator<KeyValuePair<
Wrapper
<TInputOutput>, Pair<TInputOutput, TLeftKey>>>? _outputEnumerator; // The enumerator output elements + order keys.
284
new Dictionary<
Wrapper
<TInputOutput>, Pair<TInputOutput, TLeftKey>>(
300
Wrapper
<TInputOutput> wrappedLeftElement = new Wrapper<TInputOutput>(leftElement.First);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (5)
232
private readonly IEqualityComparer<
Wrapper
<TInputOutput>> _comparer; // Comparer to use for equality/hash-coding.
234
private Dictionary<
Wrapper
<TInputOutput>, Pair<TInputOutput, TLeftKey>>? _hashLookup; // The hash lookup, used to produce the intersection.
270
_hashLookup = new Dictionary<
Wrapper
<TInputOutput>, Pair<TInputOutput, TLeftKey>>(_comparer);
281
Wrapper
<TInputOutput> wrappedLeftElem = new Wrapper<TInputOutput>(leftElement.First);
308
Wrapper
<TInputOutput> wrappedRightElem = new Wrapper<TInputOutput>(rightElement.First);
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (6)
298
private IEnumerator<KeyValuePair<
Wrapper
<TInputOutput>, Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>>>? _outputEnumerator; // Enumerator over the output of the union.
340
IEqualityComparer<
Wrapper
<TInputOutput>> wrapperComparer = new WrapperEqualityComparer<TInputOutput>(_comparer);
341
Dictionary<
Wrapper
<TInputOutput>, Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>> union =
342
new Dictionary<
Wrapper
<TInputOutput>, Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>>(wrapperComparer);
356
Wrapper
<TInputOutput> wrappedElem = new Wrapper<TInputOutput>(elem.First);
373
Wrapper
<TInputOutput> wrappedElem = new Wrapper<TInputOutput>(elem.First);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (5)
194
private readonly Dictionary<
Wrapper
<TInputOutput>, TKey> _hashLookup; // The hash lookup, used to produce the distinct set.
197
private IEnumerator<KeyValuePair<
Wrapper
<TInputOutput>, TKey>>? _hashLookupEnumerator; // Enumerates over _hashLookup.
214
_hashLookup = new Dictionary<
Wrapper
<TInputOutput>, TKey>(
243
Wrapper
<TInputOutput> wrappedElem = new Wrapper<TInputOutput>(elem.First);
261
KeyValuePair<
Wrapper
<TInputOutput>, TKey> currentPair = _hashLookupEnumerator.Current;
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (22)
231
internal HashLookup<
Wrapper
<TGroupKey>, ListChunk<TElement>>? _hashLookup; // The lookup with key-value mappings.
289
protected abstract HashLookup<
Wrapper
<TGroupKey>, ListChunk<TElement>> BuildHashLookup();
320
protected override HashLookup<
Wrapper
<TGroupKey>, ListChunk<TSource>> BuildHashLookup()
322
HashLookup<
Wrapper
<TGroupKey>, ListChunk<TSource>> hashlookup =
323
new HashLookup<
Wrapper
<TGroupKey>, ListChunk<TSource>>(new WrapperEqualityComparer<TGroupKey>(_keyComparer));
334
Wrapper
<TGroupKey> key = new Wrapper<TGroupKey>(sourceElement.Second);
382
protected override HashLookup<
Wrapper
<TGroupKey>, ListChunk<TElement>> BuildHashLookup()
384
HashLookup<
Wrapper
<TGroupKey>, ListChunk<TElement>> hashlookup =
385
new HashLookup<
Wrapper
<TGroupKey>, ListChunk<TElement>>(new WrapperEqualityComparer<TGroupKey>(_keyComparer));
396
Wrapper
<TGroupKey> key = new Wrapper<TGroupKey>(sourceElement.Second);
434
internal HashLookup<
Wrapper
<TGroupKey>, GroupKeyData>? _hashLookup; // The lookup with key-value mappings.
497
protected abstract HashLookup<
Wrapper
<TGroupKey>, GroupKeyData> BuildHashLookup();
549
protected override HashLookup<
Wrapper
<TGroupKey>, GroupKeyData> BuildHashLookup()
551
HashLookup<
Wrapper
<TGroupKey>, GroupKeyData> hashLookup = new HashLookup<
Wrapper
<TGroupKey>, GroupKeyData>(
563
Wrapper
<TGroupKey> key = new Wrapper<TGroupKey>(sourceElement.Second);
624
protected override HashLookup<
Wrapper
<TGroupKey>, GroupKeyData> BuildHashLookup()
626
HashLookup<
Wrapper
<TGroupKey>, GroupKeyData> hashLookup = new HashLookup<
Wrapper
<TGroupKey>, GroupKeyData>(
638
Wrapper
<TGroupKey> key = new Wrapper<TGroupKey>(sourceElement.Second);
681
private readonly KeyValuePair<
Wrapper
<TGroupKey>, ListChunk<TElement>> _keyValues; // A key value pair.
687
internal GroupByGrouping(KeyValuePair<
Wrapper
<TGroupKey>, ListChunk<TElement>> keyValues)
System\Linq\Parallel\Utils\WrapperEqualityComparer.cs (4)
20
internal readonly struct WrapperEqualityComparer<T> : IEqualityComparer<
Wrapper
<T>>
27
public bool Equals(
Wrapper
<T> x,
Wrapper
<T> y)
33
public int GetHashCode(
Wrapper
<T> x)