String.ValueOf String.ValueOf Method

Definition

Overloads

ValueOf(Double) ValueOf(Double)

Returns the string representation of the given double.

ValueOf(Int64) ValueOf(Int64)

Returns the string representation of the given long.

ValueOf(Int32) ValueOf(Int32)

Returns the string representation of the given int.

ValueOf(Char[]) ValueOf(Char[])

Returns a new string containing the same chars as the given array.

ValueOf(Char[], Int32, Int32) ValueOf(Char[], Int32, Int32)

Returns a new string containing the same chars as the given subset of the given array.

ValueOf(Boolean) ValueOf(Boolean)

Converts the specified boolean to its string representation.

ValueOf(Object) ValueOf(Object)

Converts the specified object to its string representation.

ValueOf(Single) ValueOf(Single)

Returns the string representation of the given float.

ValueOf(Char) ValueOf(Char)

Returns a new string of just the given char.

ValueOf(Double) ValueOf(Double)

Returns the string representation of the given double.

[Android.Runtime.Register("valueOf", "(D)Ljava/lang/String;", "")]
public static string ValueOf (double d);
static member ValueOf : double -> string

Parameters

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(Int64) ValueOf(Int64)

Returns the string representation of the given long.

[Android.Runtime.Register("valueOf", "(J)Ljava/lang/String;", "")]
public static string ValueOf (long l);
static member ValueOf : int64 -> string

Parameters

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(Int32) ValueOf(Int32)

Returns the string representation of the given int.

[Android.Runtime.Register("valueOf", "(I)Ljava/lang/String;", "")]
public static string ValueOf (int i);
static member ValueOf : int -> string

Parameters

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(Char[]) ValueOf(Char[])

Returns a new string containing the same chars as the given array.

[Android.Runtime.Register("valueOf", "([C)Ljava/lang/String;", "")]
public static string ValueOf (char[] data);
static member ValueOf : char[] -> string

Parameters

data
Char[]

the array of characters.

Returns

Exceptions

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(Char[], Int32, Int32) ValueOf(Char[], Int32, Int32)

Returns a new string containing the same chars as the given subset of the given array.

[Android.Runtime.Register("valueOf", "([CII)Ljava/lang/String;", "")]
public static string ValueOf (char[] data, int offset, int count);
static member ValueOf : char[] * int * int -> string

Parameters

data
Char[]

the array of characters.

offset
Int32 Int32
count
Int32 Int32

Returns

Exceptions

if length , start or start + length > data.length

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(Boolean) ValueOf(Boolean)

Converts the specified boolean to its string representation.

[Android.Runtime.Register("valueOf", "(Z)Ljava/lang/String;", "")]
public static string ValueOf (bool b);
static member ValueOf : bool -> string

Parameters

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(Object) ValueOf(Object)

Converts the specified object to its string representation.

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

Parameters

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(Single) ValueOf(Single)

Returns the string representation of the given float.

[Android.Runtime.Register("valueOf", "(F)Ljava/lang/String;", "")]
public static string ValueOf (float f);
static member ValueOf : single -> string

Parameters

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(Char) ValueOf(Char)

Returns a new string of just the given char.

[Android.Runtime.Register("valueOf", "(C)Ljava/lang/String;", "")]
public static string ValueOf (char c);
static member ValueOf : char -> string

Parameters

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.

Applies to