Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BuildHashLookup()

override HashLookup< Wrapper< TGroupKey >, ListChunk< TElement > > System.Linq.Parallel.GroupByElementSelectorQueryOperatorEnumerator< TSource, TGroupKey, TElement, TOrderKey >.BuildHashLookup ( )
inlineprotected

Definition at line 16 of file GroupByElementSelectorQueryOperatorEnumerator.cs.

17 {
20 TOrderKey currentKey = default(TOrderKey);
21 int num = 0;
22 while (_source.MoveNext(ref currentElement, ref currentKey))
23 {
24 if ((num++ & 0x3F) == 0)
25 {
27 }
31 {
34 }
36 }
37 return hashLookup;
38 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
readonly QueryOperatorEnumerator< Pair< TSource, TGroupKey >, TOrderKey > _source

References System.Linq.Parallel.GroupByQueryOperatorEnumerator< TSource, TGroupKey, TElement, TOrderKey >._cancellationToken, System.Linq.Parallel.GroupByElementSelectorQueryOperatorEnumerator< TSource, TGroupKey, TElement, TOrderKey >._elementSelector, System.Linq.Parallel.GroupByQueryOperatorEnumerator< TSource, TGroupKey, TElement, TOrderKey >._keyComparer, System.Linq.Parallel.GroupByQueryOperatorEnumerator< TSource, TGroupKey, TElement, TOrderKey >._source, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.key, System.Threading.CancellationToken.ThrowIfCancellationRequested(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.