Short.ParseShort Short.ParseShort Method

Definition

Overloads

ParseShort(String) ParseShort(String)

Parses the specified string as a signed decimal short value.

ParseShort(String, Int32) ParseShort(String, Int32)

Parses the specified string as a signed short value using the specified radix.

ParseShort(String) ParseShort(String)

Parses the specified string as a signed decimal short value.

[Android.Runtime.Register("parseShort", "(Ljava/lang/String;)S", "")]
public static short ParseShort (string s);
static member ParseShort : string -> int16

Parameters

Returns

Exceptions

if string cannot be parsed as a short value.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ParseShort(String, Int32) ParseShort(String, Int32)

Parses the specified string as a signed short value using the specified radix.

[Android.Runtime.Register("parseShort", "(Ljava/lang/String;I)S", "")]
public static short ParseShort (string s, int radix);
static member ParseShort : string * int -> int16

Parameters

radix
Int32 Int32

the radix to use when parsing.

Returns

Exceptions

if string cannot be parsed as a short value, or radix Character.MAX_RADIX.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to