Short.ValueOf Short.ValueOf Method

Definition

Overloads

ValueOf(String) ValueOf(String)

Parses the specified string as a signed decimal short value.

ValueOf(Int16) ValueOf(Int16)

Returns a Short instance for the specified short value.

ValueOf(String, Int32) ValueOf(String, Int32)

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

ValueOf(String) ValueOf(String)

Parses the specified string as a signed decimal short value.

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/lang/Short;", "")]
public static Java.Lang.Short ValueOf (string s);
static member ValueOf : string -> Java.Lang.Short

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.

See also

ValueOf(Int16) ValueOf(Int16)

Returns a Short instance for the specified short value.

[Android.Runtime.Register("valueOf", "(S)Ljava/lang/Short;", "")]
public static Java.Lang.Short ValueOf (short s);
static member ValueOf : int16 -> Java.Lang.Short

Parameters

s
Int16 Int16

the short value to store in the instance.

Returns

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.

ValueOf(String, Int32) ValueOf(String, Int32)

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

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;I)Ljava/lang/Short;", "")]
public static Java.Lang.Short ValueOf (string s, int radix);
static member ValueOf : string * int -> Java.Lang.Short

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