String.CopyValueOf String.CopyValueOf Method

Definition

Overloads

CopyValueOf(Char[]) CopyValueOf(Char[])

Creates a new string by copying the given char[].

CopyValueOf(Char[], Int32, Int32) CopyValueOf(Char[], Int32, Int32)

Creates a new string by copying the given subsequence of the given char[].

CopyValueOf(Char[]) CopyValueOf(Char[])

Creates a new string by copying the given char[].

[Android.Runtime.Register("copyValueOf", "([C)Ljava/lang/String;", "")]
public static string CopyValueOf (char[] data);
static member CopyValueOf : 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.

CopyValueOf(Char[], Int32, Int32) CopyValueOf(Char[], Int32, Int32)

Creates a new string by copying the given subsequence of the given char[].

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

Parameters

data
Char[]

the array of characters.

offset
Int32 Int32
count
Int32 Int32

Returns

Exceptions

if length 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.

Applies to