ImmutableStack.Pop<T>(IImmutableStack<T>, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.