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

定义

在不可变列表中指定索引处插入指定的元素。

public:
 System::Collections::Immutable::IImmutableList<T> ^ Insert(int index, T element);
public System.Collections.Immutable.IImmutableList<T> Insert(int index, T element);
abstract member Insert : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
Public Function Insert (index As Integer, element As T) As IImmutableList(Of T)

参数

index
Int32

要在其中插入值的从零开始的索引。

element
T

要插入的对象。

返回

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

适用于