Click or drag to resize

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
Syntax
public static TResult Aggregate<TSource, TAccumulate, TResult>(
	this BcfReadOnlyArrayList<TSource> source,
	TAccumulate seed,
	Func<TAccumulate, TSource, TAccumulate> func,
	Func<TAccumulate, TResult> resultSelector
)

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: TResult
The 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