ImmutableStack.Pop<T>(IImmutableStack<T>, T) 方法

定义

从不可变堆栈中移除指定的项。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)

类型参数

T

堆栈中包含的项的类型。The type of items contained in the stack.

参数

stack
IImmutableStack<T>

要修改的堆栈。The stack to modify.

value
T

要从堆栈中移除的项。The item to remove from the stack.

返回

一个堆栈;永不为 nullA stack; never null.

异常

堆栈为空。The stack is empty.

适用于