MathHelper.Max Method (Microsoft.Xna.Framework)

Returns the greater of two values.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.398)
  • 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.

Parameters

value1
Type: System.Int32
Source value.
value2
Type: System.Int32
Source value.

Return Value

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

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web