IEnumerable<T>.Min Method
Overloads
| Min |
Returns the minimum value in the sequence. |
| Min(Func<T,Integer>) |
Invokes a transform function on each element of the sequence and returns the minimum Integer value. |
| Min(Func<T,Int64>) |
Invokes a transform function on each element of the sequence and returns the minimum Int64 value. |
| Min(Func<T,Single>) |
Invokes a transform function on each element of the sequence and returns the minimum Single value. |
| Min(Func<T,Double>) |
Invokes a transform function on each element of the sequence and returns the minimum Double value. |
| Min(Func<T,Currency>) |
Invokes a transform function on each element of the sequence and returns the minimum Currency value. |
| Min(IComparer<T>) |
Returns the minimum value in the sequence by using the specified comparer. |
| Min(TComparison<T>) |
Returns the minimum value in the sequence by using the specified comparison. |
Returns the minimum value in the sequence.
function Min: T
Returns
The minimum value in the sequence.
Exceptions
The sequence is empty.
Invokes a transform function on each element of the sequence and returns the minimum Integer value.
function Min(const selector: Func<T, Integer>): Integer
Parameters
- selector
- Func<T, Integer>
A transform function to apply to each element.
Returns
The minimum value in the sequence.
Exceptions
selector is nil .
The sequence is empty.
Invokes a transform function on each element of the sequence and returns the minimum Int64 value.
function Min(const selector: Func<T, Int64>): Int64
Parameters
- selector
- Func<T, Int64>
A transform function to apply to each element.
Returns
The minimum value in the sequence.
Exceptions
selector is nil .
The sequence is empty.
Invokes a transform function on each element of the sequence and returns the minimum Single value.
function Min(const selector: Func<T, Single>): Single
Parameters
- selector
- Func<T, Single>
A transform function to apply to each element.
Returns
The minimum value in the sequence.
Exceptions
selector is nil .
The sequence is empty.
Invokes a transform function on each element of the sequence and returns the minimum Double value.
function Min(const selector: Func<T, Double>): Double
Parameters
- selector
- Func<T, Double>
A transform function to apply to each element.
Returns
The minimum value in the sequence.
Exceptions
selector is nil .
The sequence is empty.
Invokes a transform function on each element of the sequence and returns the minimum Currency value.
function Min(const selector: Func<T, Currency>): Currency
Parameters
- selector
- Func<T, Currency>
A transform function to apply to each element.
Returns
The minimum value in the sequence.
Exceptions
selector is nil .
The sequence is empty.
Returns the minimum value in the sequence by using the specified comparer.
function Min(const comparer: IComparer<T>): T
Parameters
- comparer
- IComparer<T>
A comparer to compare values.
Returns
The minimum value in the sequence.
Exceptions
comparer is nil .
The sequence is empty.