ImmutableArray<T>.CopyTo 方法

定义

重载

CopyTo(Int32, T[], Int32, Int32)

将此数组中的指定项复制到指定数组中的指定起始索引处。Copies the specified items in this array to the specified array at the specified starting index.

CopyTo(T[], Int32)

从指定目标索引处开始,将此数组的内容复制到指定的数组。Copies the contents of this array to the specified array starting at the specified destination index.

CopyTo(T[])

将此数组的内容复制到指定的数组。Copies the contents of this array to the specified array.

CopyTo(Int32, T[], Int32, Int32)

将此数组中的指定项复制到指定数组中的指定起始索引处。Copies the specified items in this array to the specified array at the specified starting index.

public:
 void CopyTo(int sourceIndex, cli::array <T> ^ destination, int destinationIndex, int length);
public void CopyTo (int sourceIndex, T[] destination, int destinationIndex, int length);
member this.CopyTo : int * 'T[] * int * int -> unit
Public Sub CopyTo (sourceIndex As Integer, destination As T(), destinationIndex As Integer, length As Integer)

参数

sourceIndex
Int32

此数组中复制开始处的索引。The index of this array where copying begins.

destination
T[]

要复制到的数组。The array to copy to.

destinationIndex
Int32

array 中复制开始处的索引。The index in array where copying begins.

length
Int32

要从此数组中复制的元素数。The number of elements to copy from this array.

CopyTo(T[], Int32)

从指定目标索引处开始,将此数组的内容复制到指定的数组。Copies the contents of this array to the specified array starting at the specified destination index.

public:
 virtual void CopyTo(cli::array <T> ^ destination, int destinationIndex);
public void CopyTo (T[] destination, int destinationIndex);
abstract member CopyTo : 'T[] * int -> unit
override this.CopyTo : 'T[] * int -> unit
Public Sub CopyTo (destination As T(), destinationIndex As Integer)

参数

destination
T[]

要复制到的数组。The array to copy to.

destinationIndex
Int32

array 中复制开始处的索引。The index in array where copying begins.

实现

CopyTo(T[])

将此数组的内容复制到指定的数组。Copies the contents of this array to the specified array.

public:
 void CopyTo(cli::array <T> ^ destination);
public void CopyTo (T[] destination);
member this.CopyTo : 'T[] -> unit
Public Sub CopyTo (destination As T())

参数

destination
T[]

要复制到的数组。The array to copy to.

适用于