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

◆ WrapPartitionedStreamHelperOrdered< TKey >()

void System.Linq.Parallel.GroupByQueryOperator< TSource, TGroupKey, TElement >.WrapPartitionedStreamHelperOrdered< TKey > ( PartitionedStream< Pair< TSource, TGroupKey >, TKey > hashStream,
IPartitionedStreamRecipient< IGrouping< TGroupKey, TElement > > recipient,
CancellationToken cancellationToken )
inlineprivate

Definition at line 56 of file GroupByQueryOperator.cs.

57 {
58 int partitionCount = hashStream.PartitionCount;
60 IComparer<TKey> keyComparer = hashStream.KeyComparer;
61 for (int i = 0; i < partitionCount; i++)
62 {
63 if (_elementSelector == null)
64 {
67 }
68 else
69 {
71 }
72 }
74 }
readonly Func< TSource, TElement > _elementSelector
readonly Func< TSource, TGroupKey > _keySelector
readonly IEqualityComparer< TGroupKey > _keyComparer

References System.Linq.Parallel.GroupByQueryOperator< TSource, TGroupKey, TElement >._elementSelector, System.Linq.Parallel.GroupByQueryOperator< TSource, TGroupKey, TElement >._keyComparer, System.Linq.Parallel.GroupByQueryOperator< TSource, TGroupKey, TElement >._keySelector, and System.cancellationToken.