Table of Contents

Max Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/IntegerExtensions.cs

Max(int, int)

Returns the larger of two 32-bit signed integers.

public static int Max(this int value, int minimum)

Parameters

value int

The first of two 32-bit signed integers to compare.

minimum int

The second of two 32-bit signed integers to compare.

Returns

int

Parameter value or minimum, whichever is larger.

Max(long, long)

Returns the larger of two 64-bit signed integers.

public static long Max(this long value, long minimum)

Parameters

value long

The first of two 64-bit signed integers to compare.

minimum long

The second of two 64-bit signed integers to compare.

Returns

long

Parameter value or minimum, whichever is larger.

Max(short, short)

Returns the larger of two 16-bit signed integers.

public static short Max(this short value, short minimum)

Parameters

value short

The first of two 16-bit signed integers to compare.

minimum short

The second of two 16-bit signed integers to compare.

Returns

short

Parameter value or minimum, whichever is larger.