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

定义

将集合的元素复制到数组,从特定数组索引处开始复制。Copies the elements of the collection to an array, starting at a particular array index.

 virtual void System.Collections.Generic.ICollection<T>.CopyTo(cli::array <T> ^ array, int arrayIndex) = System::Collections::Generic::ICollection<T>::CopyTo;
void ICollection<T>.CopyTo (T[] array, int arrayIndex);
Sub CopyTo (array As T(), arrayIndex As Integer) Implements ICollection(Of T).CopyTo

参数

array
T[]

作为从集合复制的元素的目标的一维数组。The one-dimensional array that is the destination of the elements copied from collection. 该数组的索引必须从零开始。The array must have zero-based indexing.

arrayIndex
Int32

array 中要从其开始复制的从零开始的索引。The zero-based index in array at which copying begins.

实现

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 ImmutableSortedSet<T> 实例被强制转换为 ICollection<T> 接口时使用。It can be used only when the ImmutableSortedSet<T> instance is cast to an ICollection<T> interface.

System.object NuGet 包System.Collections.Immutable NuGet package

关于不可变集合以及如何安装About immutable collections and how to install

适用于