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

◆ InternalAggregate()

override? double System.Linq.Parallel.NullableLongAverageAggregationOperator.InternalAggregate ( ref Exception singularExceptionToThrow)
inlineprotected

Definition at line 56 of file NullableLongAverageAggregationOperator.cs.

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