'Declaration
Public Overloads Shared Function Sum(Of TSource)( _ ByVal source As System.Collections.Generic.IEnumerable(Of TSource), _ ByVal selector As System.Func(Of TSource,BigDecimal) _ ) As BigDecimal
public static BigDecimal Sum<TSource>( System.Collections.Generic.IEnumerable<TSource> source, System.Func<TSource,BigDecimal> selector )
Parameters
- source
- A sequence of TSource values to calculate the sum of.
- selector
- Gets a BigDecimal from an item in the source
Type Parameters
- TSource
- The items in the collection
Return Value
The sum of the values in the sequence.