Mono Class Library: System.Math Overview | Members

System.Math.Max Method

Returns the greater of two specified ushort values. [Edit]

[System.CLSCompliant(false)]
[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public static ushort Max (ushort val1, ushort val2)

Parameters

val1
The first of two specified ushort values to compare. [Edit]
val2
The second of two specified ushort values to compare. [Edit]

Returns

A ushort that is equal to val1 if val1 is greater than or equal to val2; otherwise, the return value is equal to val2. [Edit]

Remarks

This method is not CLS-compliant. For a CLS-compliant alternative, use Math.Max(sbyte, sbyte)(int, int). [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0