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

定義

從特定的陣列索引開始,將集合的項目複製到陣列。

 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);
abstract member System.Collections.Generic.ICollection<T>.CopyTo : 'T[] * int -> unit
override this.System.Collections.Generic.ICollection<T>.CopyTo : 'T[] * int -> unit
Sub CopyTo (array As T(), arrayIndex As Integer) Implements ICollection(Of T).CopyTo

參數

array
T[]

從集合複製項目之目的地的一維陣列。 陣列必須有以零為起始的索引。

arrayIndex
Int32

array 中以零起始的索引,即開始複製的位置。

實作

備註

這個成員是明確介面成員實作, 只有在 ImmutableSortedSet<T> 執行個體轉換成 ICollection<T> 介面時,才能使用這個成員。

System.Collections.Immutable NuGet 套件

關於不可變的集合以及如何安裝

適用於