Qbservable.Min<TSource> Method (IQbservable<TSource>, IComparer<TSource>)
Returns the minimum value in a queryable observable sequence according to the specified comparer.
Namespace: System.Reactive.Linq
Assembly: System.Reactive.Providers (in System.Reactive.Providers.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Min(Of TSource) ( _
source As IQbservable(Of TSource), _
comparer As IComparer(Of TSource) _
) As IQbservable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim comparer As IComparer(Of TSource)
Dim returnValue As IQbservable(Of TSource)
returnValue = source.Min(comparer)
public static IQbservable<TSource> Min<TSource>(
this IQbservable<TSource> source,
IComparer<TSource> comparer
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<TSource>^ Min(
IQbservable<TSource>^ source,
IComparer<TSource>^ comparer
)
static member Min :
source:IQbservable<'TSource> *
comparer:IComparer<'TSource> -> IQbservable<'TSource>
JScript does not support generic types and methods.
Type Parameters
- TSource
The type of source.
Parameters
- source
Type: System.Reactive.Linq.IQbservable<TSource>
A queryable observable sequence to determine the minimum element of.
- comparer
Type: System.Collections.Generic.IComparer<TSource>
The comparer used to compare elements.
Return Value
Type: System.Reactive.Linq.IQbservable<TSource>
The minimum value in a queryable observable sequence according to the specified comparer.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .