Share via


Observable.Max Method (IObservable<Nullable<Decimal>>)

Returns the maximum value in an observable sequence of nullable Decimal values.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Nullable<Decimal>>
The maximum value in an 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 IObservable<Nullable<Decimal>>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

Max Overload

System.Reactive.Linq Namespace