Constructs and initializes a new instance of the ArrayList class that is empty and has the specified initial ArrayList.Capacity .
- capacity
- A int that specifies the number of elements that the new instance is initially capable of storing.
Type Reason ArgumentOutOfRangeException capacity < 0.
If capacity is zero, the ArrayList.Capacity of the current instance is set to 16 when the first element is added.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0