 | BcfReadOnlyArrayListExtensionsAggregateTSource, TAccumulate, TResult Method (BcfReadOnlyArrayListTSource, TAccumulate, FuncTAccumulate, TSource, TAccumulate, FuncTAccumulate, TResult) |
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
Namespace:
System.Linq
Assembly:
CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntaxpublic static TResult Aggregate<TSource, TAccumulate, TResult>(
this BcfReadOnlyArrayList<TSource> source,
TAccumulate seed,
Func<TAccumulate, TSource, TAccumulate> func,
Func<TAccumulate, TResult> resultSelector
)
<ExtensionAttribute>
Public Shared Function Aggregate(Of TSource, TAccumulate, TResult) (
source As BcfReadOnlyArrayList(Of TSource),
seed As TAccumulate,
func As Func(Of TAccumulate, TSource, TAccumulate),
resultSelector As Func(Of TAccumulate, TResult)
) As TResult
Parameters
- source
- Type: CalculationWorks.BusinessModelBcfReadOnlyArrayListTSource
The source. - seed
- Type: TAccumulate
The initial accumulator value. - func
- Type: SystemFuncTAccumulate, TSource, TAccumulate
An accumulator function to be invoked on each element. - resultSelector
- Type: SystemFuncTAccumulate, TResult
A function to transform the final accumulator value into the result value.
Type Parameters
- TSource
- The type of the elements of source.
- TAccumulate
- The type of the accumulated value.
- TResult
- The type of result returned by the result selector.
Return Value
Type:
TResultThe transformed final accumulator value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
BcfReadOnlyArrayListTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also