How To Create And Initialize A String Array In C#



TODO:

Have you wanted to create and initialize a string array in C#?

 

SOLUTION: 

string[] myArray = new string[] { "string1", "string2", "string3" };

 

 

NOTES:

No notes for this topic.



Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading