Implements the IList interface using an array whose size is dynamically increased as required.
Object
ArrayList
[Visual Basic] Public Class ArrayList Implements IList, ICollection, IEnumerable, ICloneable [C#] public class ArrayList : IList, ICollection, IEnumerable, ICloneable [C++] public __gc class ArrayList : public IList, ICollection, IEnumerable, ICloneable [JScript] public class ArrayList implements IList, ICollection, IEnumerable, ICloneable
The capacity of an ArrayList is the number of elements the list can hold. As elements are added to an ArrayList, the capacity is automatically increased as required through reallocation. The capacity can be decreased by calling TrimToSize or by setting the Capacity property explicitly.
Namespace: System.Collections
Assembly: mscorlib.dll