Table of Contents

Method Min

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Min(object?, object?)

Returns the smaller of two objects. Objects must support IComparable interface.

public static object? Min(object? a, object? b)

Parameters

a object

The first of two objects to compare.

b object

The second of two objects to compare.

Returns

object

Parameter a or b, 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

values double[]

Array of double numbers.

Returns

double

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

values int[]

Array of int numbers.

Returns

int

Exceptions

ArgumentOutOfRangeException

if values is an empty array.