ImmutableList<T>.SetItem(Int32, T) メソッド

定義

変更できないリスト内の特定の位置にある要素を、指定した要素に置き換えます。

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

パラメーター

index
Int32

置換する要素のリスト内の位置。

value
T

古い要素を置き換える要素。

返品

置き換えられた要素を含む新しいリスト (その位置の古い要素と等しい場合でも)。

適用対象