Upraviť

Zdieľať cez


ImmutableInterlocked.InterlockedInitialize<T> Method

Definition

Sets an array to the specified array if the array has not been initialized.

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

Type Parameters

T

The type of element stored by the array.

Parameters

location
ImmutableArray<T>

The array to set to the specified value.

value
ImmutableArray<T>

The value to which the location parameter is set, if it's not initialized.

Returns

true if the array was assigned the specified value; otherwise, false.

Applies to