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

◆ InternalAggregate()

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

Definition at line 58 of file LongAverageAggregationOperator.cs.

59 {
61 {
63 if (!enumerator.MoveNext())
64 {
66 return 0.0;
67 }
68 Pair<long, long> current = enumerator.Current;
69 while (enumerator.MoveNext())
70 {
71 current.First += enumerator.Current.First;
72 current.Second += enumerator.Current.Second;
73 }
74 return (double)current.First / (double)current.Second;
75 }
76 }
static string NoElements
Definition SR.cs:16
Definition SR.cs:7

References System.SR.NoElements.