ImmutableInterlocked.InterlockedInitialize<T> Metodo

Definizione

Imposta una matrice sulla matrice specificata, se la matrice non è stata inizializzata.

public:
generic <typename T>
 static bool InterlockedInitialize(System::Collections::Immutable::ImmutableArray<T> % location, System::Collections::Immutable::ImmutableArray<T> value);
public static bool InterlockedInitialize<T> (ref System.Collections.Immutable.ImmutableArray<T> location, System.Collections.Immutable.ImmutableArray<T> value);
static member InterlockedInitialize : ImmutableArray * System.Collections.Immutable.ImmutableArray<'T> -> bool
Public Shared Function InterlockedInitialize(Of T) (ByRef location As ImmutableArray(Of T), value As ImmutableArray(Of T)) As Boolean

Parametri di tipo

T

Tipo di elemento memorizzato dalla matrice.

Parametri

location
ImmutableArray<T>

Matrice da impostare sul valore specificato.

value
ImmutableArray<T>

Valore su cui è impostato il parametro location, se non è inizializzato.

Restituisce

true se la matrice è stata assegnata al valore specificato; in caso contrario, false.

Si applica a