Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
InternalAggregate()
override
? double System.Linq.Parallel.NullableDoubleAverageAggregationOperator.InternalAggregate
(
ref
Exception
singularExceptionToThrow
)
inline
protected
Definition at line
53
of file
NullableDoubleAverageAggregationOperator.cs
.
54
{
55
checked
56
{
57
using
IEnumerator
<
Pair<double, long>
>
enumerator
= GetEnumerator(
ParallelMergeOptions
.FullyBuffered,
suppressOrderPreservation
:
true
);
58
if
(!
enumerator
.MoveNext())
59
{
60
return
null
;
61
}
62
Pair<double, long>
current =
enumerator
.Current;
63
while
(
enumerator
.MoveNext())
64
{
65
current.First +=
enumerator
.Current.First;
66
current.Second +=
enumerator
.Current.Second;
67
}
68
return
current.First / (double)current.Second;
69
}
70
}
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
NullableDoubleAverageAggregationOperator
Generated by
1.10.0