ImmutableSortedDictionary<TKey,TValue>.ICollection.CopyTo(Array, Int32) 方法

定义

从特定的数组索引开始,将字典的元素复制到数组中。Copies the elements of the dictionary to an array, starting at a particular array index.

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array array, int index);

参数

array
Array

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

index
Int32

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

实现

注解

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

适用于