IImmutableStack<T>.Push(T) 方法

定义

在不可变堆栈顶部插入一个元素,并返回新堆栈。Inserts an element at the top of the immutable stack and returns the new stack.

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

参数

value
T

要推送到堆栈中的元素。The element to push onto the stack.

返回

新堆栈。The new stack.

适用于