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.

Min

Returns the minimum value in the sequence.

Delphi
function Min: T

Returns

T

The minimum value in the sequence.

Exceptions

The sequence is empty.

Min(Func<T,Integer>)

Invokes a transform function on each element of the sequence and returns the minimum Integer value.

Delphi
function Min(const selector: Func<T, Integer>): Integer

Parameters

selector
Func<T, Integer>

A transform function to apply to each element.

Returns

Integer

The minimum value in the sequence.

Exceptions

selector is nil .

The sequence is empty.

Min(Func<T,Int64>)

Invokes a transform function on each element of the sequence and returns the minimum Int64 value.

Delphi
function Min(const selector: Func<T, Int64>): Int64

Parameters

selector
Func<T, Int64>

A transform function to apply to each element.

Returns

Int64

The minimum value in the sequence.

Exceptions

selector is nil .

The sequence is empty.

Min(Func<T,Single>)

Invokes a transform function on each element of the sequence and returns the minimum Single value.

Delphi
function Min(const selector: Func<T, Single>): Single

Parameters

selector
Func<T, Single>

A transform function to apply to each element.

Returns

Single

The minimum value in the sequence.

Exceptions

selector is nil .

The sequence is empty.

Min(Func<T,Double>)

Invokes a transform function on each element of the sequence and returns the minimum Double value.

Delphi
function Min(const selector: Func<T, Double>): Double

Parameters

selector
Func<T, Double>

A transform function to apply to each element.

Returns

Double

The minimum value in the sequence.

Exceptions

selector is nil .

The sequence is empty.

Min(Func<T,Currency>)

Invokes a transform function on each element of the sequence and returns the minimum Currency value.

Delphi
function Min(const selector: Func<T, Currency>): Currency

Parameters

selector
Func<T, Currency>

A transform function to apply to each element.

Returns

Currency

The minimum value in the sequence.

Exceptions

selector is nil .

The sequence is empty.

Min(IComparer<T>)

Returns the minimum value in the sequence by using the specified comparer.

Delphi
function Min(const comparer: IComparer<T>): T

Parameters

comparer
IComparer<T>

A comparer to compare values.

Returns

T

The minimum value in the sequence.

Exceptions

comparer is nil .

The sequence is empty.

Min(TComparison<T>)

Returns the minimum value in the sequence by using the specified comparison.

Delphi
function Min(const comparer: TComparison<T>): T

Parameters

comparer
TComparison<T>

A comparison to compare values.

Returns

T

Exceptions

comparer is nil .

The sequence is empty.