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