ArraySegment<T>.ToArray 方法

定义

将此数组段的内容复制到新数组中。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()

返回

T[]

包含当前数组段中数据的数组。An array containing the data in the current array segment.

异常

default(ArraySegment<T>) 不能转换为数组。default(ArraySegment<T>) cannot be converted to an array.

适用于