Export (0) Print
Expand All

Array Collection Type

The Array class is not part of the Collections namespace. However, it is still a collection because it is based on the IList interface.

The rank of an Array is the number of dimensions in the Array. An Array can have one or more ranks.

The lower bound of an Array is the index of its first element. An Array can have any lower bound. It has a lower bound of zero by default, but a different lower bound can be defined when creating an instance of the Array class using Array.CreateInstance.

Unlike the classes in the Collections namespace, Array has a fixed capacity. To increase the capacity, you have to create a new Array with the required capacity, copy the elements from the old Array to the new one, and delete the old Array.

However, only the system and compilers can derive explicitly from the Array class. Users should use the array constructs provided by the language that they use.

See Also

Generic Collection Types | Array | IList | System.Collections Namespace

Show:
© 2014 Microsoft