ImmutableArray<T>.IImmutableList<T>.SetItem(Int32, T) Method

Definition

Replaces the item at the specified index with the specified item.

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.SetItem(int index, T value) = System::Collections::Immutable::IImmutableList<T>::SetItem;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.SetItem (int index, T value);
abstract member System.Collections.Immutable.IImmutableList<T>.SetItem : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.SetItem : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
Function SetItem (index As Integer, value As T) As IImmutableList(Of T) Implements IImmutableList(Of T).SetItem

Parameters

index
Int32

The index of the item to replace.

value
T

The value to add to the list.

Returns

The new array that contains item at the specified index.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the ImmutableArray<T> instance is cast to an IImmutableList<T> interface.

Applies to