Copies the elements of the ArrayList to a new Object array.
[Visual Basic] Overloads Overridable Public Function ToArray() As Object () [C#] public virtual object[] ToArray(); [C++] public: virtual Object* ToArray() []; [JScript] public function ToArray() : Object[];
An Object array containing copies of the elements of the ArrayList.
This method can be overridden by a derived class.
The elements are copied using Copy, which is an O(n) operation.
ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList.ToArray Overload List