Breyta

Deila með


ArraySegment<T>.ToArray Method

Definition

Copies the contents of this array segment into 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 the data in the current array segment.

Exceptions

default(ArraySegment<T>) cannot be converted to an array.

Applies to