Condividi tramite


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

Definizione

Rimuove l'elemento specificato da uno stack non modificabile.

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)

Parametri di tipo

T

Tipo di elementi contenuti nello stack.

Parametri

stack
IImmutableStack<T>

Stack da modificare.

value
T

Elemento da rimuovere dallo stack.

Restituisce

Stack; mai null.

Eccezioni

Lo stack è vuoto.

Si applica a