Mono Class Library: System.Collections.Generic.List<T> Overview | Members

System.Collections.Generic.List<T>.ToArray Method

Copies the elements in the list to a new array.

public T[] ToArray ()

Returns

The new array containing a copy of the list's elements.

Remarks

This an O(n) operation, where n is List<T>.Count.

Requirements

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0