Share via


Qbservable.Average Method (IQbservable<Nullable<Decimal>>)

Computes the average of a queryable observable sequence of nullable Decimal values.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Average ( _
    source As IQbservable(Of Nullable(Of Decimal)) _
) As IQbservable(Of Nullable(Of Decimal))
'Usage
Dim source As IQbservable(Of Nullable(Of Decimal))
Dim returnValue As IQbservable(Of Nullable(Of Decimal))

returnValue = source.Average()
public static IQbservable<Nullable<decimal>> Average(
    this IQbservable<Nullable<decimal>> source
)
[ExtensionAttribute]
public:
static IQbservable<Nullable<Decimal>>^ Average(
    IQbservable<Nullable<Decimal>>^ source
)
static member Average : 
        source:IQbservable<Nullable<decimal>> -> IQbservable<Nullable<decimal>> 
public static function Average(
    source : IQbservable<Nullable<decimal>>
) : IQbservable<Nullable<decimal>>

Parameters

Return Value

Type: System.Reactive.Linq.IQbservable<Nullable<Decimal>>
The average of a queryable observable sequence of nullable Decimal values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<Nullable<Decimal>>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Qbservable Class

Average Overload

System.Reactive.Linq Namespace