ImmutableInterlocked.TryPop<T>(ImmutableStack<T>, T) Methode

Definition

Entfernt ein Element vom oberen Rand des Stapels, wenn ein Element entfernt werden soll.

public:
generic <typename T>
 static bool TryPop(System::Collections::Immutable::ImmutableStack<T> ^ % location, [Runtime::InteropServices::Out] T % value);
public static bool TryPop<T>(ref System.Collections.Immutable.ImmutableStack<T> location, out T value);
static member TryPop : ImmutableStack * 'T -> bool
Public Shared Function TryPop(Of T) (ByRef location As ImmutableStack(Of T), ByRef value As T) As Boolean

Typparameter

T

Der Typ der Elemente im Stapel.

Parameter

location
ImmutableStack<T>

Der zu aktualisierende Stapel.

value
T

Empfängt den Wert, der aus dem Stapel entfernt wird, wenn der Stapel nicht leer ist.

Gibt zurück

truewenn ein Element aus dem Stapel entfernt wird; andernfalls . false

Gilt für: