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> 되는 경우에만 사용할 수 있습니다.

적용 대상