 | BcfReadOnlyArrayListExtensionsAggregateTSource Method (BcfReadOnlyArrayListTSource, FuncTSource, TSource, TSource) |
Applies an accumulator function over a sequence.
Namespace:
System.Linq
Assembly:
CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntaxpublic static TSource Aggregate<TSource>(
this BcfReadOnlyArrayList<TSource> source,
Func<TSource, TSource, TSource> func
)
<ExtensionAttribute>
Public Shared Function Aggregate(Of TSource) (
source As BcfReadOnlyArrayList(Of TSource),
func As Func(Of TSource, TSource, TSource)
) As TSource
Parameters
- source
- Type: CalculationWorks.BusinessModelBcfReadOnlyArrayListTSource
The source. - func
- Type: SystemFuncTSource, TSource, TSource
An accumulator function to be invoked on each element.
Type Parameters
- TSource
- The type of the elements of source.
Return Value
Type:
TSourceThe 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