declare dynamic arrays in c# code example
Example 1: dynamic arrays in c#
List<string> list = new List<string>();
list.Add("one");
list.Add("two");
list.Add("three");
string[] array = list.ToArray();
Example 2: how to declare an dinamic array in c#
int[] pumba = new int[5];
int[] timon = new int[] {};
int[] simba = new int[] { 1, 3, 5, 7, 9, 11, 13 };