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