Array

Description

The Array class implements properties and methods of the Array data type and also variables that have this data type.

Properties of Variables of the Array Type

  Property name Brief description
The Length property returns the number of all array elements.
The Rank property returns the number of array dimensions.

Methods of Variables of the Array Type

  Method name Brief description
The GetLowerBound method returns the lower limit of the dimension, the number of which is passed as the input parameter.
The GetType method returns the type of data contained in the array.
The GetUpperBound method returns the upper limit of the dimension, the number of which is passed as the input parameter.
The IndexOf method searches for the specified value in the array and returns the index of the first occurrence of the corresponding element.
The LastIndexOf method searches for the specified value in the array and returns the index of the last occurrence of the corresponding element.
The Sort method sorts array elements in the ascending order.

See also:

System Assembly Classes