Creates an ArrayList containing elements copied from the specified collection.
[Visual Basic] Overloads Public Sub New( _ ByVal c As ICollection _ ) [C#] public ArrayList( ICollection c ); [C++] public: ArrayList( ICollection* c ); [JScript] public function ArrayList( c : ICollection );
Exception Type | Condition |
---|---|
ArgumentNullException | c is a null reference (in Visual Basic Nothing). |
When adding elements to the list and the number of elements exceeds the capacity, the capacity is doubled.
ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList Constructor Overload List | ICollection | Capacity