ImmutableList<T>.Builder.CopyTo 方法

定义

重载

名称 说明
CopyTo(T[])

从目标数组的开头开始,将整个不可变列表复制到兼容的一维数组。

CopyTo(T[], Int32)

将整个不可变列表复制到兼容的一维数组,从目标数组的指定索引处开始。

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

将整个不可变列表复制到兼容的一维数组,从目标数组的指定索引处开始。

CopyTo(T[])

Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs

从目标数组的开头开始,将整个不可变列表复制到兼容的一维数组。

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

参数

array
T[]

一维数组,它是从不可变列表中复制的元素的目标。 数组必须具有从零开始的索引。

适用于

CopyTo(T[], Int32)

Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs

将整个不可变列表复制到兼容的一维数组,从目标数组的指定索引处开始。

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

参数

array
T[]

一维数组,它是从不可变列表中复制的元素的目标。 数组必须具有从零开始的索引。

arrayIndex
Int32

数组中从零开始的索引。

实现

适用于

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

Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs

将整个不可变列表复制到兼容的一维数组,从目标数组的指定索引处开始。

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

参数

index
Int32

源不可变列表中的从零开始复制的索引。

array
T[]

一维数组,它是从不可变列表中复制的元素的目标。 数组必须具有从零开始的索引。

arrayIndex
Int32

从零开始复制的索引 array

count
Int32

要复制的元素数。

适用于