Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
InternalAggregate()
override
double System.Linq.Parallel.DoubleAverageAggregationOperator.InternalAggregate
(
ref
Exception
singularExceptionToThrow
)
inline
protected
Definition at line
55
of file
DoubleAverageAggregationOperator.cs
.
56
{
57
checked
58
{
59
using
IEnumerator
<
Pair<double, long>
>
enumerator
= GetEnumerator(
ParallelMergeOptions
.FullyBuffered,
suppressOrderPreservation
:
true
);
60
if
(!
enumerator
.MoveNext())
61
{
62
singularExceptionToThrow
=
new
InvalidOperationException
(
System
.
SR
.
NoElements
);
63
return
0.0;
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
current.First / (double)current.Second;
72
}
73
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.SR.NoElements
static string NoElements
Definition
SR.cs:16
System.SR
Definition
SR.cs:7
System.Collections.Generic.IEnumerator
Definition
IEnumerator.cs:4
System.Linq.ParallelMergeOptions
ParallelMergeOptions
Definition
ParallelMergeOptions.cs:4
System.Transactions.TransactionExceptionType.InvalidOperationException
@ InvalidOperationException
System
Definition
BlockingCollection.cs:8
References
System.SR.NoElements
.
System
Linq
Parallel
DoubleAverageAggregationOperator
Generated by
1.10.0