Answers for "c# convert char to array"

C#
2

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);
      }
   }
}
Posted by: Guest on February-17-2022

C# Answers by Framework

Browse Popular Code Answers by Language