Copies the elements in the list to a new array.
Syntax
public T[] ToArray ()
Returns
The new array containing a copy of the list's elements.
Remarks
Requirements
Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0