ComparableExtensions.Min<T>

Extension Method in ComparableExtensions

Declaration

public static T Min<T>(this T[] values)
    where T : IComparable<T>

Description

Returns the minimum value in the array.

Type Parameters

TThe type of value to check.

Parameters

valuesThe values to check.

Returns

TThe minimum value in the array.

Overload

Declaration

public static T Min<T>(this List<T> values)
    where T : IComparable<T>

Description

Returns the minimum value in the list.

Type Parameters

TThe type of value to check.

Parameters

valuesThe values to check.

Returns

TThe minimum value in the list.