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

System.Collections.ArrayList Constructor

Constructs and initializes a new instance of the ArrayList class with the elements from the specified ICollection. The initial ArrayList.Count and ArrayList.Capacity of the new list are both equal to the number of elements in the specified collection.

public ArrayList (ICollection c)

Parameters

c
The ICollection whose elements are copied to the new list.

Exceptions

TypeReason
ArgumentNullExceptionc is null.

Remarks

The elements in the new ArrayList instance are in the same order as contained in c.

Requirements

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