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

定义

将指定对象插入指定索引处的不可变列表中。

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

参数

index
Int32

要插入对象的从零开始的索引。

item
T

要插入的对象。

返回

插入对象后的新不可变列表。

适用于