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

◆ InternalAggregate()

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

Definition at line 55 of file DecimalAverageAggregationOperator.cs.

56 {
58 {
60 if (!enumerator.MoveNext())
61 {
63 return 0m;
64 }
65 Pair<decimal, long> current = enumerator.Current;
66 while (enumerator.MoveNext())
67 {
68 current.First += enumerator.Current.First;
69 current.Second += enumerator.Current.Second;
70 }
71 return current.First / (decimal)current.Second;
72 }
73 }
static string NoElements
Definition SR.cs:16
Definition SR.cs:7

References System.SR.NoElements.