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