Enumerable.Sum Method (IEnumerable<Nullable<Single>>)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<Nullable<Single>>. When you use instance method syntax to call this method, omit the first parameter.| Exception | Condition |
|---|---|
| ArgumentNullException | source is null. |
Show: