Qbservable.Sum Method (IQbservable<Int32>)

Computes the sum of a sequence of Int32 values.

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

Syntax

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

returnValue = source.Sum()
public static IQbservable<int> Sum(
    this IQbservable<int> source
)
[ExtensionAttribute]
public:
static IQbservable<int>^ Sum(
    IQbservable<int>^ source
)
static member Sum : 
        source:IQbservable<int> -> IQbservable<int> 
public static function Sum(
    source : IQbservable<int>
) : IQbservable<int>

Parameters

Return Value

Type: System.Reactive.Linq.IQbservable<Int32>
The sum of a sequence of Int32 values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<Int32>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Qbservable Class

Sum Overload

System.Reactive.Linq Namespace