Interactive Extensions
Interactive Extensions
Ix-Main Namespaces
System.Linq
QueryableEx Class
QueryableEx Methods
Min Method
Min(TSource) Method (IEnumerable(TSource), IComparer(TSource))
Min(TSource) Method (IQueryable(TSource), IComparer(TSource))
QueryableEx
Min
TSource
Method (IQueryable
TSource
, IComparer
TSource
)
Returns the minimum value in the enumerable sequence by using the specified comparer to compare values.
Namespace:
System.Linq
Assembly:
System.Interactive.Providers (in System.Interactive.Providers.dll) Version: 1.2.0.0
Syntax
C#
Copy
public
static
TSource
Min
<TSource>(
this
IQueryable
<TSource>
source
,
IComparer
<TSource>
comparer
)
Parameters
source
Type:
System.Linq
IQueryable
TSource
Source sequence.
comparer
Type:
System.Collections.Generic
IComparer
TSource
Comparer used to determine the minimum value.
Type Parameters
TSource
Source sequence element type.
Return Value
Type:
TSource
Minimum value in the sequence.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IQueryable
TSource
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
QueryableEx Class
Min Overload
System.Linq Namespace