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

定義

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

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

パラメーター

index
Int32

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

value
T

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

返品

指定した場所にある要素が新しい要素と同じである場合でも、新しい要素を含む新しいリスト。

適用対象