c# can conver string to string[] code example
Example 1: convert string to array c#
string myString = "foobar";
char[] myCharArray = myString.ToCharArray();
/* Example of myCharArray
{'f', 'o', 'o', 'b', 'a', 'r'}
*/
Example 2: c# can conver string to string[]
String foo = "Foo"; // one instance of String
String[] foos = new String[] { "Foo1", "Foo2", "Foo3" };
String firstFoo = foos[0]; // "Foo1"