Enumerable.Sum Method (IEnumerable<Nullable<Single>>)
.NET Framework (current version)
Computes the sum of a sequence of nullable Single values.
Assembly: System.Core (in System.Core.dll)
Parameters
- source
-
Type:
System.Collections.Generic.IEnumerable<Nullable<Single>>
A sequence of nullable Single values to calculate the sum of.
| Exception | Condition |
|---|---|
| ArgumentNullException | source is null. |
This method returns zero if source contains no elements.
The result does not include values that are null.
In Visual Basic query expression syntax, an Aggregate Into Sum() clause translates to an invocation of Sum.
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: