ImmutableStack.Pop<T>(IImmutableStack<T>, T) Methode

Definition

Entfernt das angegebene Element aus einem unveränderlichen Stapel.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::IImmutableStack<T> ^ Pop(System::Collections::Immutable::IImmutableStack<T> ^ stack, [Runtime::InteropServices::Out] T % value);
public static System.Collections.Immutable.IImmutableStack<T> Pop<T> (this System.Collections.Immutable.IImmutableStack<T> stack, out T value);
static member Pop : System.Collections.Immutable.IImmutableStack<'T> * 'T -> System.Collections.Immutable.IImmutableStack<'T>
<Extension()>
Public Function Pop(Of T) (stack As IImmutableStack(Of T), ByRef value As T) As IImmutableStack(Of T)

Typparameter

T

Der Typ des Elements, das im Stapel enthalten ist.

Parameter

stack
IImmutableStack<T>

Der Stapel, der geändert werden soll.

value
T

Das Element, das aus dem Stapel entfernt werden soll.

Gibt zurück

Ein Stapel; nie null.

Ausnahmen

Der Stapel ist leer.

Gilt für: