Udostępnij przez


ImmutableInterlocked.InterlockedExchange<T> Metoda

Definicja

Ustawia tablicę na określoną tablicę i zwraca odwołanie do oryginalnej tablicy jako operację niepodzielnej.

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)

Parametry typu

T

Typ elementu przechowywanego przez tablicę.

Parametry

location
ImmutableArray<T>

Tablica, która ma zostać ustawiona na określoną wartość.

value
ImmutableArray<T>

Wartość, do której location ustawiono parametr.

Zwraca

Oryginalna wartość .location

Dotyczy