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

◆ InternalAggregate()

override? decimal System.Linq.Parallel.NullableDecimalAverageAggregationOperator.InternalAggregate ( ref Exception singularExceptionToThrow)
inlineprotected

Definition at line 53 of file NullableDecimalAverageAggregationOperator.cs.

54 {
56 {
58 if (!enumerator.MoveNext())
59 {
60 return null;
61 }
62 Pair<decimal, long> current = enumerator.Current;
63 while (enumerator.MoveNext())
64 {
65 current.First += enumerator.Current.First;
66 current.Second += enumerator.Current.Second;
67 }
68 return current.First / (decimal)current.Second;
69 }
70 }