ImmutableInterlocked.InterlockedCompareExchange<T> Metodo

Definizione

Confronta due matrici non modificabili per verificarne l'uguaglianza e, se sono uguali, sostituisce una delle matrici.

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)

Parametri di tipo

T

Tipo di elemento archiviato dalla matrice.

Parametri

location
ImmutableArray<T>

Destinazione, il cui valore viene confrontato con comparand ed eventualmente sostituito.

value
ImmutableArray<T>

Valore che sostituisce il valore di destinazione se il confronto determina l'uguaglianza.

comparand
ImmutableArray<T>

Valore confrontato con il valore in location.

Valori restituiti

Valore originale in location.

Si applica a