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

◆ InternalAggregate()

override long System.Linq.Parallel.LongMinMaxAggregationOperator.InternalAggregate ( ref Exception singularExceptionToThrow)
inlineprotected

Definition at line 77 of file LongMinMaxAggregationOperator.cs.

78 {
79 using IEnumerator<long> enumerator = GetEnumerator(ParallelMergeOptions.FullyBuffered, suppressOrderPreservation: true);
80 if (!enumerator.MoveNext())
81 {
83 return 0L;
84 }
85 long num = enumerator.Current;
86 if (_sign == -1)
87 {
88 while (enumerator.MoveNext())
89 {
90 long current = enumerator.Current;
91 if (current < num)
92 {
93 num = current;
94 }
95 }
96 }
97 else
98 {
99 while (enumerator.MoveNext())
100 {
101 long current2 = enumerator.Current;
102 if (current2 > 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.LongMinMaxAggregationOperator._sign, System.L, and System.SR.NoElements.