Returns the larger of two 8-bit unsigned integers.
Syntax
[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public static
byte Max (
byte val1,
byte val2)
Parameters
- val1
-
The first of two 8-bit unsigned integers to compare.
- val2
-
The second of two 8-bit unsigned integers to compare.
Returns
Parameter val1 or val2, whichever is larger.
Remarks
Requirements
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0