ImmutableArray<T>.IImmutableList<T>.SetItem(Int32, T) Método
Definição
Substitui o item no índice especificado pelo item especificado.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
Parâmetros
- index
- Int32
O índice do item a ser substituído.The index of the item to replace.
- value
- T
O valor a ser adicionado à lista.The value to add to the list.
Retornos
A nova matriz que contém item no índice especificado.The new array that contains item at the specified index.
Implementações
Comentários
Este membro é uma implementação do membro de interface explícita.This member is an explicit interface member implementation. Ele só pode ser usado quando a instância de ImmutableArray<T> é convertida em uma interface de IImmutableList<T>.It can be used only when the ImmutableArray<T> instance is cast to an IImmutableList<T> interface.