ImmutableArray.IImmutableList.SetItem(Int32, T) Method (System.Collections.Immutable) (original) (raw)

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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 value at the specified index.

Implements

Remarks

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

Applies to