Java.Lang.Integer.ParseInt Method
Parses the specified string as a signed integer value using the specified radix.

Syntax

[Android.Runtime.Register("parseInt", "(Ljava/lang/String;I)I", "")]
public static int ParseInt (string string, int radix)

Parameters

string
the string representation of an integer value.
radix
the radix to use when parsing.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NumberFormatExceptionif string cannot be parsed as an integer value, or radix Character.MAX_RADIX.

Remarks

Parses the specified string as a signed integer value using the specified radix. The ASCII characters - ('-') and + ('+') are recognized as the minus and plus signs.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1