Min Method (Int32, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns the smaller of two 32-bit signed integers.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static int Min(
	int val1,
	int val2
)

Parameters

val1
Type: System..::..Int32
The first of two 32-bit signed integers to compare.
val2
Type: System..::..Int32
The second of two 32-bit signed integers to compare.

Return Value

Type: System..::..Int32
Parameter val1 or val2, whichever is smaller.

Show: