Answers for "how to turn a string into an array of chars c#"

C#
-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

Code answers related to "how to turn a string into an array of chars c#"

C# Answers by Framework

Browse Popular Code Answers by Language