Android Guides | Samples

Java.Lang.String.ToCharArray Method

Returns a new char array containing a copy of the chars in this string.

Syntax

[Android.Runtime.Register("toCharArray", "()[C", "")]
public Char[] ToCharArray ()

Remarks

Returns a new char array containing a copy of the chars in this string. This is expensive and rarely useful. If you just want to iterate over the chars in the string, use String.CharAt(Int32) instead.

[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