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();

```
You can also use the `new` operator just like with other object types:

```
int[] array = new int[5];

```

or, with a variable:

```
int[] array = new int[someLength];

```