Share via


ToCharArray Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Copies the characters in this instance to a Unicode character array.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Function ToCharArray As Char()
public char[] ToCharArray()
public:
array<wchar_t>^ ToCharArray()
member ToCharArray : unit -> char[] 
public function ToCharArray() : char[]

Return Value

Type: array<System. . :: . .Char> [] () [] []
A Unicode character array whose elements are the individual characters of this instance. If this instance is an empty string, the returned array is empty and has a zero length.

.NET Framework Security

See Also

Reference

String Class

ToCharArray Overload

System Namespace