Method Max
Max(object?, object?)
Returns the larger of two objects. Objects must support IComparable interface.
public static object? Max(object? a, object? b)
Parameters
Returns
- object
Parameter
a
orb
, whichever is larger.
Remarks
Any of the objects can be null
.
Max(params double[])
Returns the larger of the specified numbers.
public static double Max(params double[] values)
Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
if
values
is an empty array.
Max(params int[])
Returns the larger of the specified numbers.
public static int Max(params int[] values)
Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
if
values
is an empty array.
Max(params int?[])
Returns the larger of the specified numbers.
public static int Max(params int?[] values)
Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
if
values
is an empty array.