ImmutableArray<T>.IImmutableList<T>.Replace 메서드

정의

배열에서 지정된 값과 같은 첫 번째 요소를 찾아 해당 값을 지정된 새 값으로 바꿉니다.

 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

매개 변수

oldValue
T

배열에서 찾아서 바꿀 값입니다.

newValue
T

를 바꿀 값입니다 oldvalue .

equalityComparer
IEqualityComparer<T>

값을 비교하는 데 사용할 같음 비교자입니다.

반환

newValue가 포함된 새 배열입니다. 이는 새 값과 이전 값이 동일한 경우에도 마찬가지입니다.

구현

예외

oldValue가 배열에 없습니다.

설명

이 멤버는 명시적 인터페이스 멤버 구현이며, ImmutableArray<T> 인스턴스가 IImmutableList<T> 인터페이스로 캐스팅된 경우에만 사용할 수 있습니다.

적용 대상