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

オブジェクトを挿入する位置を示す 0 から始まるインデックス。

item
T

挿入するオブジェクト。

戻り値

オブジェクトを挿入した後の新しい変更できないリスト。

適用対象