Mono Class Library: System.Collections.ArrayList Overview | Members

System.Collections.ArrayList.Count Property

Implemented to support the ICollection interface. [Note: For more information, see ICollection.Count.] [Edit]

public virtual int Count { get; }

Value

A int that specifies the number of elements contained in the current instance. [Edit]

Remarks

This property is read-only.

ArrayList.Count is the number of elements that are contained by the ArrayList. The count of a list is always less than or equal to ArrayList.Capacity of that list.

Note: This property is implemented to support the IList interface.

Operation
As described above.

If the ArrayList.Count exceeds the ArrayList.Capacity of the current instance while adding elements to the current instance, the capacity of the list is doubled by automatically reallocating the internal array before copying the old elements and adding the new elements. [Edit]

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0