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