This documentation is archived and is not being maintained.

ArrayList Constructor

.NET Framework 1.1

Initializes a new instance of the ArrayList class.

Overload List

Initializes a new instance of the ArrayList class that is empty and has the default initial capacity.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public ArrayList();
[C++] public: ArrayList();
[JScript] public function ArrayList();

Initializes a new instance of the ArrayList class that contains elements copied from the specified collection and that has the same initial capacity as the number of elements copied.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(ICollection)
[C#] public ArrayList(ICollection);
[C++] public: ArrayList(ICollection*);
[JScript] public function ArrayList(ICollection);

Initializes a new instance of the ArrayList class that is empty and has the specified initial capacity.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(Integer)
[C#] public ArrayList(int);
[C++] public: ArrayList(int);
[JScript] public function ArrayList(int);

See Also

ArrayList Class | ArrayList Members | System.Collections Namespace

Show: