c# convert string to char array
using System;
public class myExample {
public static void Main(){
string strExample = "example";
char[] charArr = strExample.ToCharArray();
foreach (char c in charArr) {
Console.WriteLine(c);
}
}
}