Enumerable.Sum Method (IEnumerable<Nullable<Single>>)
Computes the sum of a sequence of nullable Single values.
Assembly: System.Core (in System.Core.dll)
Usage NoteIn 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.
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.
The following code example demonstrates how to use to sum the values of a sequence.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Si desidera partecipare?