ComparableExtensions.Max<T>
Extension Method in ComparableExtensions
Declaration
public static T Max<T>(this T[] values)
where T : IComparable<T>
Description
Returns the maximum value in the array.
Type Parameters
T | The type of value to check. |
Parameters
values | The values to check. |
Returns
T | The maximum value in the array. |
Overload
Declaration
public static T Max<T>(this List<T> values)
where T : IComparable<T>
Description
Returns the maximum value in the list.
Type Parameters
T | The type of value to check. |
Parameters
values | The values to check. |
Returns
T | The maximum value in the list. |