ImmutableList<T>.IImmutableList<T>.Insert(Int32, T) 方法

定义

将指定元素插入到不可变列表中的指定索引位置。

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.Insert(int index, T item) = System::Collections::Immutable::IImmutableList<T>::Insert;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.Insert (int index, T item);
abstract member System.Collections.Immutable.IImmutableList<T>.Insert : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.Insert : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
Function Insert (index As Integer, item As T) As IImmutableList(Of T) Implements IImmutableList(Of T).Insert

参数

index
Int32

插入值的索引位置。

item
T

要插入的元素。

返回

包含指定元素的新不可变列表。

实现

注解

此成员是显式接口成员的实现。 它只能在 ImmutableList<T> 实例被强制转换为 IImmutableList<T> 接口时使用。

适用于