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.

적용 대상