Share via


ImmutableInterlocked.InterlockedCompareExchange<T> 메서드

정의

변경할 수 없는 두 배열이 같은지 비교하여 같으면 배열 중 하나를 바꿉니다.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> InterlockedCompareExchange(System::Collections::Immutable::ImmutableArray<T> % location, System::Collections::Immutable::ImmutableArray<T> value, System::Collections::Immutable::ImmutableArray<T> comparand);
public static System.Collections.Immutable.ImmutableArray<T> InterlockedCompareExchange<T> (ref System.Collections.Immutable.ImmutableArray<T> location, System.Collections.Immutable.ImmutableArray<T> value, System.Collections.Immutable.ImmutableArray<T> comparand);
static member InterlockedCompareExchange : ImmutableArray * System.Collections.Immutable.ImmutableArray<'T> * System.Collections.Immutable.ImmutableArray<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Shared Function InterlockedCompareExchange(Of T) (ByRef location As ImmutableArray(Of T), value As ImmutableArray(Of T), comparand As ImmutableArray(Of T)) As ImmutableArray(Of T)

형식 매개 변수

T

배열에 의해 저장되는 요소의 형식입니다.

매개 변수

location
ImmutableArray<T>

comparand와 비교하여 바뀔 수 있는 값을 가진 대상입니다.

value
ImmutableArray<T>

비교 결과가 같은 경우 대상 값을 바꿀 값입니다.

comparand
ImmutableArray<T>

location의 값과 비교할 값입니다.

반환

location의 원래 값입니다.

적용 대상