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