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

System.Collections.ArrayList Constructor

Constructs and initializes a new instance of the ArrayList class that is empty and has the specified initial ArrayList.Capacity .

public ArrayList (int capacity)

Parameters

capacity
A int that specifies the number of elements that the new instance is initially capable of storing.

Exceptions

TypeReason
ArgumentOutOfRangeExceptioncapacity < 0.

Remarks

If capacity is zero, the ArrayList.Capacity of the current instance is set to 16 when the first element is added.

Requirements

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