Android Guides | Samples

Java.Lang.Short.ParseShort Method

Parses the specified string as a signed decimal short value.

Syntax

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

Parameters

string
the string representation of a short value.

Exceptions

TypeReason
NumberFormatExceptionif string cannot be parsed as a short value.

Remarks

Parses the specified string as a signed decimal short value. 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