Table of Contents

Min Method

Definition

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

Min(int, int)

Returns the smaller of two 32-bit signed integers.

public static int Min(this int value, int maximum)

Parameters

value int

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

maximum int

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

Returns

int

Parameter value or maximum, whichever is smaller.

Min(long, long)

Returns the smaller of two 64-bit signed integers.

public static long Min(this long value, long maximum)

Parameters

value long

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

maximum long

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

Returns

long

Parameter value or maximum, whichever is smaller.

Min(short, short)

Returns the smaller of two 16-bit signed integers.

public static short Min(this short value, short maximum)

Parameters

value short

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

maximum short

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

Returns

short

Parameter value or maximum, whichever is smaller.