Share via


ToArray Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Copies the elements of the ArrayList to a new array.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method ToArray() () () () Copies the elements of the ArrayList to a new Object array.
Public method ToArray(Type) Copies the elements of the ArrayList to a new array of the specified element type.

Top

See Also

Reference

ArrayList Class

System.Collections Namespace