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

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

```
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];

```