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

◆ InternalAggregate()

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

Definition at line 77 of file FloatMinMaxAggregationOperator.cs.

78 {
79 using IEnumerator<float> enumerator = GetEnumerator(ParallelMergeOptions.FullyBuffered, suppressOrderPreservation: true);
80 if (!enumerator.MoveNext())
81 {
83 return 0f;
84 }
85 float num = enumerator.Current;
86 if (_sign == -1)
87 {
88 while (enumerator.MoveNext())
89 {
90 float current = enumerator.Current;
91 if (current < num || float.IsNaN(current))
92 {
93 num = current;
94 }
95 }
96 }
97 else
98 {
99 while (enumerator.MoveNext())
100 {
101 float current2 = enumerator.Current;
102 if (current2 > num || float.IsNaN(num))
103 {
104 num = current2;
105 }
106 }
107 }
108 return num;
109 }
static string NoElements
Definition SR.cs:16
Definition SR.cs:7

References System.Linq.Parallel.FloatMinMaxAggregationOperator._sign, and System.SR.NoElements.