ImmutableInterlocked.InterlockedCompareExchange<T> Método

Definición

Compara dos matrices inmutables para la igualdad y, si son iguales, reemplaza a una de las matrices.

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

T

Tipo de elemento almacenado por la matriz.

Parámetros

location
ImmutableArray<T>

Destino, cuyo valor se compara con comparand y posiblemente se reemplaza.

value
ImmutableArray<T>

Valor que reemplaza el valor de destino si la comparación da como resultado la igualdad.

comparand
ImmutableArray<T>

Valor que se compara con el valor en location.

Devoluciones

Valor original de location.

Se aplica a