ImmutableStack<T>.Pop 方法

定義

多載

Pop()

移除不可變堆疊頂端的項目,並在移除之後,傳回堆疊。

Pop(T)

從不可變的堆疊中移除指定的項目,並在移除之後,傳回堆疊。

Pop()

來源:
ImmutableStack_1.cs
來源:
ImmutableStack_1.cs
來源:
ImmutableStack_1.cs

移除不可變堆疊頂端的項目,並在移除之後,傳回堆疊。

public:
 System::Collections::Immutable::ImmutableStack<T> ^ Pop();
public System.Collections.Immutable.ImmutableStack<T> Pop ();
member this.Pop : unit -> System.Collections.Immutable.ImmutableStack<'T>
Public Function Pop () As ImmutableStack(Of T)

傳回

堆疊;永遠不會 null

例外狀況

堆疊是空的。

適用於

Pop(T)

來源:
ImmutableStack_1.cs
來源:
ImmutableStack_1.cs
來源:
ImmutableStack_1.cs

從不可變的堆疊中移除指定的項目,並在移除之後,傳回堆疊。

public:
 System::Collections::Immutable::ImmutableStack<T> ^ Pop([Runtime::InteropServices::Out] T % value);
public System.Collections.Immutable.ImmutableStack<T> Pop (out T value);
member this.Pop : 'T -> System.Collections.Immutable.ImmutableStack<'T>
Public Function Pop (ByRef value As T) As ImmutableStack(Of T)

參數

value
T

要從堆疊移除的值。

傳回

堆疊;永遠不會 null

適用於