Table of Contents

Method Max

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

Max(object?, object?)

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

public static object? Max(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 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

values double[]

Array of double numbers.

Returns

double

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

values int[]

Array of int numbers.

Returns

int

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

values int?[]

Array of int numbers.

Returns

int

Exceptions

ArgumentOutOfRangeException

if values is an empty array.