ImmutableSortedSet<T>.IList<T>.Insert(Int32, T) 方法

定義

在集合中的指定索引處插入項目。

 virtual void System.Collections.Generic.IList<T>.Insert(int index, T item) = System::Collections::Generic::IList<T>::Insert;
void IList<T>.Insert (int index, T item);
abstract member System.Collections.Generic.IList<T>.Insert : int * 'T -> unit
override this.System.Collections.Generic.IList<T>.Insert : int * 'T -> unit
Sub Insert (index As Integer, item As T) Implements IList(Of T).Insert

參數

index
Int32

應在 item 插入以零為起始的索引。

item
T

要插入資料集的物件。

實作

備註

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

System.Collections.Immutable NuGet 套件

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

適用於