Enumerable.Sum Method (IEnumerable<Single>)
Computes the sum of a sequence of Single values.
Assembly: System.Core (in System.Core.dll)
This method returns zero if source contains no elements.
In Visual Basic query expression syntax, an Aggregate Into Sum() clause translates to an invocation of Sum.
The following code example demonstrates how to useto sum the values of a sequence.
Available since 8
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1