 | BcfReadOnlyArrayListExtensionsAggregateTAccumulate, TSource Method (BcfReadOnlyArrayListTSource, TAccumulate, FuncTAccumulate, TSource, TAccumulate) |
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
Namespace:
System.Linq
Assembly:
CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntaxpublic static TAccumulate Aggregate<TAccumulate, TSource>(
this BcfReadOnlyArrayList<TSource> source,
TAccumulate seed,
Func<TAccumulate, TSource, TAccumulate> func
)
<ExtensionAttribute>
Public Shared Function Aggregate(Of TAccumulate, TSource) (
source As BcfReadOnlyArrayList(Of TSource),
seed As TAccumulate,
func As Func(Of TAccumulate, TSource, TAccumulate)
) As TAccumulate
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.
Type Parameters
- TAccumulate
- The type of the accumulated value.
- TSource
- The type of the elements of source.
Return Value
Type:
TAccumulateThe 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