MathHelper.Max Method (Microsoft.Xna.Framework)

Returns the greater of two values.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public static int Max(
	int value1, 
	int value2

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: System.Int32
Source value.
Type: System.Int32
Source value.

Return Value

Type: System.Int32
The greater value.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop