Java.Lang.Short.ParseShort Method
Parses the specified string as a signed short value using the specified radix.

Syntax

[Android.Runtime.Register("parseShort", "(Ljava/lang/String;I)S", "")]
public static short ParseShort (string string, int radix)

Parameters

string
the string representation of a short 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 a short value, or radix Character.MAX_RADIX.

Remarks

Parses the specified string as a signed short value using the specified radix. The ASCII character - ('-') is recognized as the minus sign.

[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