다음을 통해 공유


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 (
         Type type
)

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, 4.1, and 4.2.

See Also

Reference

ArrayList Class
ArrayList Members
System.Collections Namespace