Qbservable.Average Method (IQbservable<Decimal>)
Computes the average of a queryable observable sequence of 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 Decimal) _
) As IQbservable(Of Decimal)
'Usage
Dim source As IQbservable(Of Decimal)
Dim returnValue As IQbservable(Of Decimal)
returnValue = source.Average()
public static IQbservable<decimal> Average(
this IQbservable<decimal> source
)
[ExtensionAttribute]
public:
static IQbservable<Decimal>^ Average(
IQbservable<Decimal>^ source
)
static member Average :
source:IQbservable<decimal> -> IQbservable<decimal>
public static function Average(
source : IQbservable<decimal>
) : IQbservable<decimal>
Parameters
- source
Type: System.Reactive.Linq.IQbservable<Decimal>
A sequence of Decimal values to calculate the average of.
Return Value
Type: System.Reactive.Linq.IQbservable<Decimal>
The average of a queryable observable sequence of Decimal values.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<Decimal>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .