Java.Lang.Short.Decode Method
Parses the specified string and returns a Short instance if the string can be decoded into a short value.

Syntax

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

Parameters

string
a string representation of a short value.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NumberFormatExceptionif string cannot be parsed as a short value.

Remarks

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

[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