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
aorb, whichever is smaller.
Remarks
Any of the objects can be null.
Min(params int[])
Returns the smaller of the specified numbers.
public static int Min(params int[] values)
Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
if
valuesis an empty array.
Min(params double[])
Returns the smaller of the specified numbers.
public static double Min(params double[] values)
Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
if
valuesis an empty array.
Min(params float[])
Returns the smaller of the specified numbers.
public static float Min(params float[] values)
Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
if
valuesis an empty array.