Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
      }
   }
}
 
PREVIOUS NEXT
Tagged: #convert #string #char #array
ADD COMMENT
Topic
Name
4+1 =