Export (0) Print
Expand All

Observable.Sum Method (IObservable(Of Nullable(Of Int32)))

Computes the sum of a sequence of nullable Int32 values.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

'Declaration
<ExtensionAttribute> _
Public Shared Function Sum ( _
	source As IObservable(Of Nullable(Of Integer)) _
) As IObservable(Of Nullable(Of Integer))
'Usage
Dim source As IObservable(Of Nullable(Of Integer))
Dim returnValue As IObservable(Of Nullable(Of Integer))

returnValue = source.Sum()

Parameters

source
Type: System.IObservable(Of Nullable(Of Int32))
A sequence of nullable Int32 values to calculate the sum of.

Return Value

Type: System.IObservable(Of Nullable(Of Int32))
The sum of a sequence of nullable Int32 values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable(Of Nullable(Of Int32)). When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
Show:
© 2014 Microsoft