語言

ImmutableStack<T>.Push(T) 方法

定義

在不可變堆疊頂端插入 物件,並傳回新的堆疊。

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

參數

value
T

要推到堆疊上的物品。

傳回

新的堆疊。

適用於