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

定义

在集内指定索引的位置插入项。Inserts an item in the set at the specified index.

 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);
Sub Insert (index As Integer, item As T) Implements IList(Of T).Insert

参数

index
Int32

应插入 item 的从零开始的索引。The zero-based index at which item should be inserted.

item
T

要插入到集内的对象。The object to insert into the set.

实现

注解

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

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

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

适用于