ImmutableList<T>.IImmutableList<T>.SetItem(Int32, T) Metoda

Definicja

Zastępuje element na liście na danej pozycji określonym elementem.

 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

Parametry

index
Int32

Pozycja na liście elementu do zastąpienia.

value
T

Element, który zastąpi stary element.

Zwraca

Nowa lista.

Implementuje

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ImmutableList<T> wystąpienie jest rzutowanie do interfejsu IImmutableList<T> .

Dotyczy