ImmutableList<T>.IImmutableList<T>.Replace Metodo

Definizione

Sostituisce un elemento nell'elenco con l'elemento specificato.

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.Replace(T oldValue, T newValue, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer) = System::Collections::Immutable::IImmutableList<T>::Replace;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.Replace (T oldValue, T newValue, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
abstract member System.Collections.Immutable.IImmutableList<T>.Replace : 'T * 'T * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.Replace : 'T * 'T * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.IImmutableList<'T>
Function Replace (oldValue As T, newValue As T, equalityComparer As IEqualityComparer(Of T)) As IImmutableList(Of T) Implements IImmutableList(Of T).Replace

Parametri

oldValue
T

Elemento da sostituire.

newValue
T

Elemento con cui sostituire l'elemento precedente.

equalityComparer
IEqualityComparer<T>

Operatore di confronto di uguaglianza da usare nella ricerca.

Restituisce

Nuovo elenco.

Implementazioni

Eccezioni

oldValue non esiste nell'elenco.

Si applica a