Version:
ParseInt(string intString) Method
Converts the specified string representation of an integer to its System.Int32 equivalent
using System.Int32.TryParse(System.String,System.Int32@). If the string is not a valid System.Int32, null
is returned.
Syntax
public
static
int? ParseInt(string intString)
Parameters
- intString
- Type: string
String to try to parse.
Returns
Resulting System.Int32 value if parsing was successful; otherwise null (Nothing in Visual Basic).