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

◆ InternalAggregate()

override? float System.Linq.Parallel.NullableFloatAverageAggregationOperator.InternalAggregate ( ref Exception singularExceptionToThrow)
inlineprotected

Definition at line 53 of file NullableFloatAverageAggregationOperator.cs.

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