Click or drag to resize
Int32Parse Method (String)
Converts the string representation of a number to its 32-bit signed integer equivalent.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static int Parse(
	string s
)

Parameters

s
Type: SystemString
A string containing a number to convert.

Return Value

Type: Int32
A 32-bit signed integer equivalent to the number contained in s.
Exceptions
ExceptionCondition
ArgumentNullExceptions is null.
FormatExceptions is not in the correct format.
OverflowExceptions represents a number less than MinValue or greater than MaxValue.
See Also