Share via


Convert.ToInt32 Method

Converts the specified string representation of a number to an equivalent 32-bit signed integer.

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

Syntax

public static int ToInt32 (
         string value
)

Parameters

  • value
    A string that contains the number to convert.

Return Value

A 32-bit signed integer that is equivalent to the number in value, or 0 (zero) if value is null.

Version Information

Available in the .NET Micro Framework version 4.2.

See Also

Reference

Convert Class
Convert Members
System Namespace