Observable

Observable.Sum Method (IObservable<Nullable<Single>>)

Computes the sum of a sequence of nullable Float values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Nullable<Single>>
The sum of a sequence of nullable Float values.

Usage Note

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

See Also

Reference

Observable Class

Sum Overload

System.Reactive.Linq Namespace

Observable.Sum Method (IObservable<Nullable<Int32>>)

Computes the sum of a sequence of nullable Int32 values.

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

Syntax

'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()
public static IObservable<Nullable<int>> Sum(
    this IObservable<Nullable<int>> source
)
[ExtensionAttribute]
public:
static IObservable<Nullable<int>>^ Sum(
    IObservable<Nullable<int>>^ source
)
static member Sum : 
        source:IObservable<Nullable<int>> -> IObservable<Nullable<int>> 
public static function Sum(
    source : IObservable<Nullable<int>>
) : IObservable<Nullable<int>>

Parameters

Return Value

Type: System.IObservable<Nullable<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<Nullable<Int32>>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

Sum Overload

System.Reactive.Linq Namespace

Observable.Sum Method (IObservable<Nullable<Double>>)

Computes the sum of a sequence of nullable Double values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Nullable<Double>>
The sum of a sequence of nullable Double values.

Usage Note

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

See Also

Reference

Observable Class

Sum Overload

System.Reactive.Linq Namespace

Observable.Sum Method (IObservable<Nullable<Decimal>>)

Computes the sum of a sequence of nullable Decimal values.

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

Syntax

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

returnValue = source.Sum()
public static IObservable<Nullable<decimal>> Sum(
    this IObservable<Nullable<decimal>> source
)
[ExtensionAttribute]
public:
static IObservable<Nullable<Decimal>>^ Sum(
    IObservable<Nullable<Decimal>>^ source
)
static member Sum : 
        source:IObservable<Nullable<decimal>> -> IObservable<Nullable<decimal>> 
public static function Sum(
    source : IObservable<Nullable<decimal>>
) : IObservable<Nullable<decimal>>

Parameters

Return Value

Type: System.IObservable<Nullable<Decimal>>
The sum of a sequence of nullable Decimal values.

Usage Note

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

See Also

Reference

Observable Class

Sum Overload

System.Reactive.Linq Namespace

Observable.Sum Method (IObservable<Nullable<Int64>>)

Computes the sum of a sequence of nullable Int64 values.

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

Syntax

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

returnValue = source.Sum()
public static IObservable<Nullable<long>> Sum(
    this IObservable<Nullable<long>> source
)
[ExtensionAttribute]
public:
static IObservable<Nullable<long long>>^ Sum(
    IObservable<Nullable<long long>>^ source
)
static member Sum : 
        source:IObservable<Nullable<int64>> -> IObservable<Nullable<int64>> 
public static function Sum(
    source : IObservable<Nullable<long>>
) : IObservable<Nullable<long>>

Parameters

Return Value

Type: System.IObservable<Nullable<Int64>>
The sum of a sequence of nullable Int64 values.

Usage Note

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

See Also

Reference

Observable Class

Sum Overload

System.Reactive.Linq Namespace

Observable.Sum Method (IObservable<Single>)

Computes the sum of a sequence of Float values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Single>
The sum of a sequence of Float values.

Usage Note

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

See Also

Reference

Observable Class

Sum Overload

System.Reactive.Linq Namespace

Observable.Sum Method (IObservable<Decimal>)

Computes the sum of a sequence of Decimal values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Decimal>
The sum of a sequence of Decimal values.

Usage Note

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

See Also

Reference

Observable Class

Sum Overload

System.Reactive.Linq Namespace

Observable.Sum Method (IObservable<Int64>)

Computes the sum of a sequence of Int64 values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Int64>
The sum of a sequence of Int64 values.

Usage Note

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

See Also

Reference

Observable Class

Sum Overload

System.Reactive.Linq Namespace

Observable.Sum Method (IObservable<Int32>)

Computes the sum of a sequence of Int32 values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<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 IObservable<Int32>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

Sum Overload

System.Reactive.Linq Namespace

Observable.Sum Method

Include Protected Members
Include Inherited Members

Computes the sum of a sequence.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

NameDescriptionPublic methodStatic memberSum(IObservable)Computes the sum of a sequence of Decimal values.Public methodStatic memberSum(IObservable)Computes the sum of a sequence of Double values.Public methodStatic memberSum(IObservable)Computes the sum of a sequence of Int32 values.Public methodStatic memberSum(IObservable)Computes the sum of a sequence of Int64 values.Public methodStatic memberSum(IObservable<Nullable>)Computes the sum of a sequence of nullable Decimal values.Public methodStatic memberSum(IObservable<Nullable>)Computes the sum of a sequence of nullable Double values.Public methodStatic memberSum(IObservable<Nullable>)Computes the sum of a sequence of nullable Int32 values.Public methodStatic memberSum(IObservable<Nullable>)Computes the sum of a sequence of nullable Int64 values.Public methodStatic memberSum(IObservable<Nullable>)Computes the sum of a sequence of nullable Float values.Public methodStatic memberSum(IObservable)Computes the sum of a sequence of Float values.Top

See Also

Reference

Observable Class

System.Reactive.Linq Namespace

Observable.Sum Method (IObservable<Double>)

Computes the sum of a sequence of Double values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<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 IObservable<Double>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

Sum Overload

System.Reactive.Linq Namespace