Returns the greater of two specified short values.
[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public static
short Max (
short val1,
short val2)
- val1
- The first of two specified short values to compare.
- val2
- The second of two specified short values to compare.
- val1
- Documentation for this section has not yet been entered.
- val2
- Documentation for this section has not yet been entered.
A short that
is equal to val1 if val1 is greater than or equal to val2; otherwise, the return value is equal
to val2.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0