ImmutableInterlocked.InterlockedExchange<T> Método

Definición

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

C#
public static System.Collections.Immutable.ImmutableArray<T> InterlockedExchange<T> (ref System.Collections.Immutable.ImmutableArray<T> location, System.Collections.Immutable.ImmutableArray<T> value);

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 está establecido el parámetro location.

Devoluciones

Valor original de location.

Se aplica a

Producto Versiones
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
UWP 10.0