ImmutableInterlocked.InterlockedExchange<T> Método

Definición

Establece una matriz en la matriz especificada y devuelve una referencia a la matriz original, como una operación atómica.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> InterlockedExchange(System::Collections::Immutable::ImmutableArray<T> % location, System::Collections::Immutable::ImmutableArray<T> value);
public static System.Collections.Immutable.ImmutableArray<T> InterlockedExchange<T>(ref System.Collections.Immutable.ImmutableArray<T> location, System.Collections.Immutable.ImmutableArray<T> value);
static member InterlockedExchange : ImmutableArray * System.Collections.Immutable.ImmutableArray<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Shared Function InterlockedExchange(Of T) (ByRef location As ImmutableArray(Of T), value 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>

Matriz que se va a establecer en el valor especificado.

value
ImmutableArray<T>

Valor en el que se establece el parámetro location.

Devoluciones

Valor original de location.

Se aplica a