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

要插入的物件。

傳回

新的不可變清單,其中包含指定的項目。

適用於