Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# string array initialization

string[] items = { "Item1", "Item2", "Item3", "Item4" };

string[] items = new string[]
{
  "Item1", "Item2", "Item3", "Item4"
};

string[] items = new string[10];
items[0] = "Item1";
items[1] = "Item2"; // ...
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #array #initialization
ADD COMMENT
Topic
Name
5+2 =