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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET