Zdieľať cez


DataCollection<T>.ToArray Method

Definition

Copies the elements of the DataCollection<T> to a new array.

public:
 cli::array <T> ^ ToArray();
public T[] ToArray ();
member this.ToArray : unit -> 'T[]
Public Function ToArray () As T()

Returns

T[]

An array containing copies of the elements of the DataCollection<T>.

Remarks

This method extends the base Collection class to add List.ToArray functionality.

Applies to