Reputation:
Suppose I have a string:
string test = "hello world";
How can I convert this string to an array of characters?
Upvotes: 1
Views: 70
Use
char[] temp = test.ToCharArray();
Upvotes: 2