input.tochararray() c# code example
Example 1: c# string to character array
string chars = "Array";
char[] letters = chars.toCharArray();
Example 2: convert string to array c#
string myString = "foobar";
char[] myCharArray = myString.ToCharArray();
/* Example of myCharArray
{'f', 'o', 'o', 'b', 'a', 'r'}
*/