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
- source
Type: System.IObservable<Nullable<Single>>
A sequence of nullable Float values to calculate the sum of.
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 .