ArrayList

ArrayList

CF 1.0, ECMA 1.0, serializable

System.Collections (mscorlib.dll)

class

This class is similar to an
array, but it can grow or
shrink as needed. The Capacity property returns
the maximum number of elements the ArrayList can
hold. You can reduce the size by setting Capacity
explicitly or using the TrimToSize( ) method. An
ArrayList can be constructed empty or with an
integer argument that sets its initial size. You can also pass the
constructor an object that implements ICollection
to fill the ArrayList with the contents of that
object.

A number of methods are provided to modify the contents of the
ArrayList. The Add( ) and
AddRange( ) methods add elements to the end of the
list. Insert( ) and InsertRange(
) add new elements at a specified location within the list.