Min Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
Min(int, int)
Returns the smaller of two 32-bit signed integers.
public static int Min(this int value, int maximum)
Parameters
valueintThe first of two 32-bit signed integers to compare.
maximumintThe second of two 32-bit signed integers to compare.
Returns
- int
Parameter
valueormaximum, 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
valuelongThe first of two 64-bit signed integers to compare.
maximumlongThe second of two 64-bit signed integers to compare.
Returns
- long
Parameter
valueormaximum, 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
valueshortThe first of two 16-bit signed integers to compare.
maximumshortThe second of two 16-bit signed integers to compare.
Returns
- short
Parameter
valueormaximum, whichever is smaller.