다음을 통해 공유


Math.Max Method

Returns the larger of two integers that have been compared with one another.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static int Max (
         intval1,
         intval2
)

Parameters

  • val1
    The first of two integers you want to compare.
  • val2
    The second of two integers you want to compare.

Return Value

The larger of the two compared integers.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

Math Class
Math Members
System Namespace