ReadOnlyCollectionBuilder<T>.CopyTo(T[], Int32) 方法

定义

从特定的 ReadOnlyCollectionBuilder<T> 索引开始,将 Array 的元素复制到 Array 中。Copies the elements of the ReadOnlyCollectionBuilder<T> to an Array, starting at particular Array index.

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[]

一维 Array,它是从 ReadOnlyCollectionBuilder<T> 复制的元素的目标。The one-dimensional Array that is the destination of the elements copied from ReadOnlyCollectionBuilder<T>.

arrayIndex
Int32

数组中从零开始的索引,在此处开始复制。The zero-based index in array at which copying begins.

实现

适用于