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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.