Click or drag to resize
ConvertToInt32 Method (Int64)
Converts the value of the specified 64-bit signed integer to an equivalent 32-bit signed integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static int ToInt32(
	long value
)

Parameters

value
Type: SystemInt64
The 64-bit signed integer to convert.

Return Value

Type: Int32
A 32-bit signed integer that is equivalent to value.
Exceptions
ExceptionCondition
OverflowExceptionvalue is greater than MaxValue or less than MinValue.
See Also