Share via


ArrayList.ToArray Method (Type)

Copies objects from the ArrayList collection to a new array of the specified type.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)

Syntax

public virtual Array ToArray (
         Typetype
)

Parameters

  • type
    The type of array you want to create and copy objects to.

Return Value

An array of the specified type containing objects copied from the ArrayListcollection.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

ArrayList Class
ArrayList Members
System.Collections Namespace