다음을 통해 공유


String.ToCharArray Method

Definition

Converts this string to a new character array.

[Android.Runtime.Register("toCharArray", "()[C", "")]
public char[]? ToCharArray ();
[<Android.Runtime.Register("toCharArray", "()[C", "")>]
member this.ToCharArray : unit -> char[]

Returns

Char[]

a newly allocated character array whose length is the length of this string and whose contents are initialized to contain the character sequence represented by this string.

Attributes

Remarks

Converts this string to a new character array.

Java documentation for java.lang.String.toCharArray().

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