Computes the sum of a sequence of decimal values.
- source
- A sequence of decimal values to calculate the sum of.
The sum of the values in the sequence.
The Enumerable.Sum(IEnumerable<decimal>) method returns zero if source contains no elements.
In vbprvb query expression syntax, an Aggregate Into Sum() clause translates to an invocation of erload:System.Linq.Enumerable.Sum.