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

◆ MoveNextCore() [2/2]

Definition at line 18 of file NullableDoubleAverageAggregationOperator.cs.

19 {
20 double num = 0.0;
21 long num2 = 0L;
23 double? currentElement2 = null;
24 TKey currentKey = default(TKey);
25 int num3 = 0;
26 while (source.MoveNext(ref currentElement2, ref currentKey))
27 {
28 if (currentElement2.HasValue)
29 {
30 if ((num3++ & 0x3F) == 0)
31 {
33 }
34 num += currentElement2.GetValueOrDefault();
35 num2 = checked(num2 + 1);
36 }
37 }
39 return num2 > 0;
40 }

References System.Linq.Parallel.InlinedAggregationOperatorEnumerator< Pair< double, long > >._cancellationToken, System.Linq.Parallel.NullableDoubleAverageAggregationOperator.NullableDoubleAverageAggregationOperatorEnumerator< TKey >._source, System.L, System.Linq.source, and System.Threading.CancellationToken.ThrowIfCancellationRequested().