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

◆ InternalAggregate()

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

Definition at line 55 of file FloatAverageAggregationOperator.cs.

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

References System.SR.NoElements.