Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
InternalAggregate()
override
? double System.Linq.Parallel.NullableLongAverageAggregationOperator.InternalAggregate
(
ref
Exception
singularExceptionToThrow
)
inline
protected
Definition at line
56
of file
NullableLongAverageAggregationOperator.cs
.
57
{
58
checked
59
{
60
using
IEnumerator
<
Pair<long, long>
>
enumerator
= GetEnumerator(
ParallelMergeOptions
.FullyBuffered,
suppressOrderPreservation
:
true
);
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
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Generic.IEnumerator
Definition
IEnumerator.cs:4
System.Linq.ParallelMergeOptions
ParallelMergeOptions
Definition
ParallelMergeOptions.cs:4
System
Linq
Parallel
NullableLongAverageAggregationOperator
Generated by
1.10.0