ImmutableInterlocked.InterlockedCompareExchange<T> Método

Definição

Compara dois arrays imutáveis para igualdade e, se forem iguais, substitui um dos arrays.

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)

Parâmetros de Tipo Genérico

T

O tipo de elemento armazenado pelo array.

Parâmetros

location
ImmutableArray<T>

O destino, cujo valor é comparado e comparand possivelmente substituído.

value
ImmutableArray<T>

O valor que substitui o valor de destino se a comparação resultar em igualdade.

comparand
ImmutableArray<T>

O valor que é comparado com o valor em location.

Devoluções

O valor original em location.

Aplica-se a