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

値を挿入する位置の 0 から始まるインデックス。

element
T

挿入するオブジェクト。

返品

指定した要素を含む新しい変更できないリスト。

適用対象