c# array size from variable code example
Example 1: how to declare an array lenght in c#
public int[] number = new int[2 /* the number here declares the lenght, not the index*/ ];
int[1 /*this number here declares the index*/] = 69;
Example 2: declare string array c# without size
List<string> myStringList = new List<string();
myStringList.Add("Test 1");
myStringList.Add("Test 2");