c# convert string to list of chars code example
Example 1: convert char array into string c#
char[] char_arr = {'Y','o','!'};
string str = new string(char_arr);
Example 2: making a list of chars in c#
string data = "ABCDEFGHIJ1fFJKAL";
List<char> datalist = new List<char>();
datalist.AddRange(data);
Example 3: how to turn a string in a char list c#
string str= "hello";
List<char> listString = str.ToList();
//Display the list
listString.ForEach(s=> Console.WriteLine(s));
//or
Console.WriteLine(listString);