Answers for "c# create string from list of char"

C#
2

making a list of chars in c#

string data = "ABCDEFGHIJ1fFJKAL";
List<char> datalist = new List<char>();
datalist.AddRange(data);
Posted by: Guest on May-31-2020
-2

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);
Posted by: Guest on November-04-2020

C# Answers by Framework

Browse Popular Code Answers by Language