«^»
5.8. Array types

In C#, it is possible to create one-dimensional arrays, multi-dimensional arrays or jagged arrays. Here is an example of the declaration of an array of ints:

int[] months = new int[12];
This makes a variable (called months) point to an object that has room for 12 ints. The usual notation is used to access an array element. If an index is out-of-range, an exception will be produced. The class System.Array provides a number of useful methods that can be applied to arrays, such as Sort, BinarySearch, Reverse, ... .