ImmutableArray<T>.IImmutableList<T>.Replace Yöntem

Tanım

Dizideki belirtilen değere eşit ilk öğeyi bulur ve değeri belirtilen yeni değerle değiştirir.

 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

Parametreler

oldValue
T

Dizide bulunup değiştirilmeye değer.

newValue
T

ile değiştirilmeye değer oldvalue .

equalityComparer
IEqualityComparer<T>

Değerleri karşılaştırmak için kullanılacak eşitlik karşılaştırıcısı.

Döndürülenler

Yeni ve eski değerler aynı olsa bile içeren newValue yeni bir dizi.

Uygulamalar

Özel durumlar

oldValue dizisinde bulunamadı.

Açıklamalar

Bu üye açık bir arabirim üyesi uygulamasıdır. Yalnızca örnek bir ImmutableArray<T> arabirime IImmutableList<T> yayınlandığında kullanılabilir.

Şunlara uygulanır