編集

次の方法で共有


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

Definition

Removes the specified item from an immutable stack.

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)

Type Parameters

T

The type of items contained in the stack.

Parameters

stack
IImmutableStack<T>

The stack to modify.

value
T

The item to remove from the stack.

Returns

A stack; never null.

Exceptions

The stack is empty.

Applies to