Share via


Qbservable.Sum Method (IQbservable<Double>)

Computes the sum of a sequence of Double 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 Double) _
) As IQbservable(Of Double)
'Usage
Dim source As IQbservable(Of Double)
Dim returnValue As IQbservable(Of Double)

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

Parameters

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<Double>. 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