Convert.ToInt32 Method

Include Protected Members
Include Inherited Members

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Converts a specified value to a 32-bit signed integer.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
ToInt32(Boolean) Converts the value of the specified Boolean value to the equivalent 32-bit signed integer.
ToInt32(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit signed integer.
ToInt32(Char) Converts the value of the specified Unicode character to the equivalent 32-bit signed integer.
ToInt32(Decimal) Converts the value of the specified Decimal number to an equivalent 32-bit signed integer.
ToInt32(Double) Converts the value of the specified double-precision floating point number to an equivalent 32-bit signed integer.
ToInt32(Int16) Converts the value of the specified 16-bit signed integer to an equivalent 32-bit signed integer.
ToInt32(Int32) Returns the specified 32-bit signed integer; no actual conversion is performed.
ToInt32(Int64) Converts the value of the specified 64-bit signed integer to an equivalent 32-bit signed integer.
ToInt32(Object) Converts the value of the specified Object to a 32-bit signed integer.
ToInt32(SByte) Converts the value of the specified 8-bit signed integer to the equivalent 32-bit signed integer.
ToInt32(Single) Converts the value of the specified single-precision floating point number to an equivalent 32-bit signed integer.
ToInt32(String) Converts the specified String representation of a number to an equivalent 32-bit signed integer.
ToInt32(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit signed integer.
ToInt32(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent 32-bit signed integer.
ToInt32(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit signed integer.
ToInt32(Object, IFormatProvider) Converts the value of the specified Object to a 32-bit signed integer using the specified culture-specific formatting information.
ToInt32(String, IFormatProvider) Converts the specified String representation of a number to an equivalent 32-bit signed integer using specified culture-specific formatting information.
ToInt32(String, Int32) Converts the String representation of a number in a specified base to an equivalent 32-bit signed integer.

Top

See Also

Reference

Convert Class

Convert Members

System Namespace