string class : ParseToInt() method
Description
Converts the string to the instance of the int type.
Syntax
stringInstance.ParseToInt()
Arguments
None
Return value
Class | Description |
int | An instance of the int type that is converted. |
Sample code
//anyString is a instance of string type.
int converted = anyString.ParseToInt();
Notes
It's a wrapper of the System.Int32.Parse(String).