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
T | The type of value to check. |
Parameters
values | The values to check. |
Returns
T | The 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
T | The type of value to check. |
Parameters
values | The values to check. |
Returns
T | The minimum value in the list. |