public static TResult Aggregate<T, TAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TResult>(
this IEnumerable<T> source,
TAccumulate1 seed1,
Func<TAccumulate1, T, TAccumulate1> accumulator1,
TAccumulate2 seed2,
Func<TAccumulate2, T, TAccumulate2> accumulator2,
TAccumulate3 seed3,
Func<TAccumulate3, T, TAccumulate3> accumulator3,
TAccumulate4 seed4,
Func<TAccumulate4, T, TAccumulate4> accumulator4,
TAccumulate5 seed5,
Func<TAccumulate5, T, TAccumulate5> accumulator5,
Func<TAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TResult> resultSelector
)
<ExtensionAttribute>
Public Shared Function Aggregate(Of T, TAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TResult) (
source As IEnumerable(Of T),
seed1 As TAccumulate1,
accumulator1 As Func(Of TAccumulate1, T, TAccumulate1),
seed2 As TAccumulate2,
accumulator2 As Func(Of TAccumulate2, T, TAccumulate2),
seed3 As TAccumulate3,
accumulator3 As Func(Of TAccumulate3, T, TAccumulate3),
seed4 As TAccumulate4,
accumulator4 As Func(Of TAccumulate4, T, TAccumulate4),
seed5 As TAccumulate5,
accumulator5 As Func(Of TAccumulate5, T, TAccumulate5),
resultSelector As Func(Of TAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TResult)
) As TResult
public:
[ExtensionAttribute]
generic<typename T, typename TAccumulate1, typename TAccumulate2, typename TAccumulate3, typename TAccumulate4, typename TAccumulate5, typename TResult>
static TResult Aggregate(
IEnumerable<T>^ source,
TAccumulate1 seed1,
Func<TAccumulate1, T, TAccumulate1>^ accumulator1,
TAccumulate2 seed2,
Func<TAccumulate2, T, TAccumulate2>^ accumulator2,
TAccumulate3 seed3,
Func<TAccumulate3, T, TAccumulate3>^ accumulator3,
TAccumulate4 seed4,
Func<TAccumulate4, T, TAccumulate4>^ accumulator4,
TAccumulate5 seed5,
Func<TAccumulate5, T, TAccumulate5>^ accumulator5,
Func<TAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TResult>^ resultSelector
)
[<ExtensionAttribute>]
static member Aggregate :
source : IEnumerable<'T> *
seed1 : 'TAccumulate1 *
accumulator1 : Func<'TAccumulate1, 'T, 'TAccumulate1> *
seed2 : 'TAccumulate2 *
accumulator2 : Func<'TAccumulate2, 'T, 'TAccumulate2> *
seed3 : 'TAccumulate3 *
accumulator3 : Func<'TAccumulate3, 'T, 'TAccumulate3> *
seed4 : 'TAccumulate4 *
accumulator4 : Func<'TAccumulate4, 'T, 'TAccumulate4> *
seed5 : 'TAccumulate5 *
accumulator5 : Func<'TAccumulate5, 'T, 'TAccumulate5> *
resultSelector : Func<'TAccumulate1, 'TAccumulate2, 'TAccumulate3, 'TAccumulate4, 'TAccumulate5, 'TResult> -> 'TResult