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