Android Guides | Samples

Java.Lang.String.CopyValueOf Method

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

Syntax

[Android.Runtime.Register("copyValueOf", "([C)Ljava/lang/String;", "")]
public static String CopyValueOf (Char[] data)

Parameters

data
the array of characters.

Exceptions

TypeReason
NullPointerExceptionif data is null.

Remarks

Creates a new string by copying the given char[]. Modifying the array after creating the string has no effect on the string.

[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