Question: How can I dynamically create an array in C#?

Answer: 
I'd like to add to Natrium's answer that generic collections also support this .ToArray() method.

```
List<string> stringList = new List<string>();
stringList.Add("1");
stringList.Add("2");
stringList.Add("3");
string[] stringArray = stringList.ToArray();

```
```
int[] array = { 1, 2, 3, 4, 5};

for (int i=0;i<=array.Length-1 ;i++ ) {
  Console.WriteLine(array[i]);
}

```