ArrayList

Description

The ArrayList class implements an object that is a dynamic array of elements.

Comment

Dynamic array elements may store any kind of data. Array capacity is a quantity of elements that can be placed into array. Array capacity is set in the Capacity property. The Count property can be used to know the actual number of elements that are contained in the array. To add an element to the array, use the Add or AddRange methods. If the capacity specified in the Capacity property is exceeded, array capacity is extended automatically. Sorting and various kinds of search of the elements are available in the array.

Class object properties inherited from IArrayList

  Property name Brief description
Capacity The Capacity property determines the number of elements that can be contained in the array.
Item The Item property returns elements value by index.

Class object properties inherited from ICollection

  Property name Brief description
Count The Count property returns the number of array elements.

Class object methods inherited from IArrayList

   Method name Brief description
AddRange The AddRange method adds the collection to the end of the array.
BinarySearch The BinarySearch method executes binary search of elements in array.
BinarySearchRange The BinarySearchRange method executes binary search of the element in array range.
Clone The Clone method creates a copy of the array.
GetRange The GetRange method returns array range.
IndexOfPos The IndexOfPos method executes direct search for a value starting from a specified element.
IndexOfRange The IndexOfRange method executes direct search of the element in array range.
InsertRange The InsertRange method inserts collection of elements into the specified position.
LastIndexOf The LastIndexOf method reversely searches for value.
LastIndexOfPos The LastIndexOfPos method reversely searches for a value starting from the specified element.
LastIndexOfRange The LastIndexOfRange method reversely searches for the element in array range.
RemoveRange The RemoveRange method removes value range.
Reverse The Reverse method sets reverse order of array elements.
ReverseRange The ReverseRange method sets reverse order of array element range.
Sort The Sort method sorts an array.
SortRange The SortRange method sorts array range.
ToArray The ToArray method converts into standard array.
TrimToSize The TrimToSize method sets array size equal to actual number of elements in the array.

Class object methods inherited from IList

   Method name Brief description
The Add method adds an element and returns its index.
The Clear method clears the list.
The Contains method checks if an element exists.
The IndexOf method searches the Value value and returns the index in the list.
The Insert method inserts the element into the specified position.
The Remove method removes element by the value.
The RemoveAt method removes an element at the specified position.

Class object methods inherited from ICollection

  Method name Brief description
CopyTo The CopyTo method copies the collection into an array.

See also:

Collections Assembly Classes