Java.Lang.Integer.Decode Method
Parses the specified string and returns a Integer instance if the string can be decoded into an integer value.

Syntax

[Android.Runtime.Register("decode", "(Ljava/lang/String;)Ljava/lang/Integer;", "")]
public static Integer Decode (string string)

Parameters

string
a string representation of an integer value.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NumberFormatExceptionif string cannot be parsed as an integer value.

Remarks

Parses the specified string and returns a Integer instance if the string can be decoded into an integer value. The string may be an optional sign character ("-" or "+") followed by a hexadecimal ("0x..." or "#..."), octal ("0..."), or decimal ("...") representation of an integer.

[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