Share via


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

Computes the average of an observable sequence of nullable Int64 values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Nullable<Double>>
The average of an observable 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

Average Overload

System.Reactive.Linq Namespace