ImmutableInterlocked.InterlockedInitialize<T> Metod

Definition

Anger en matris till den angivna matrisen om matrisen inte har initierats.

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

Typparametrar

T

Typ av element som lagras av matrisen.

Parametrar

location
ImmutableArray<T>

Matrisen som ska anges till det angivna värdet.

value
ImmutableArray<T>

Värdet som parametern location har angetts till, om den inte initieras.

Returer

trueom matrisen tilldelades det angivna värdet; annars . false

Gäller för