toCharArray

Summary

Constructs a character array from the string value.

Usage

public char[] toCharArray()

Returns

A new character array representing the equivalent of the string value.

Description

Constructs a character array from the string value.

Examples

Basic Usage
1
2
3
4
import System;
 
string abc = "abc";
char[] characters = abc.toCharArray();

Share

HTML | BBCode | Direct Link