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

```
```
object foo = Array.CreateInstance(typeof(byte), length);

```