user2535931
user2535931

Reputation:

Converting String to array of characters

Suppose I have a string:

string  test = "hello world"; 

How can I convert this string to an array of characters?

Upvotes: 1

Views: 70

Answers (1)

user2488066
user2488066

Reputation:

Use

char[] temp = test.ToCharArray();

Upvotes: 2

Related Questions