ImmutableStack<T>.IImmutableStack<T>.Push(T) 方法

定義

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

 virtual System::Collections::Immutable::IImmutableStack<T> ^ System.Collections.Immutable.IImmutableStack<T>.Push(T value) = System::Collections::Immutable::IImmutableStack<T>::Push;
System.Collections.Immutable.IImmutableStack<T> IImmutableStack<T>.Push (T value);
abstract member System.Collections.Immutable.IImmutableStack<T>.Push : 'T -> System.Collections.Immutable.IImmutableStack<'T>
override this.System.Collections.Immutable.IImmutableStack<T>.Push : 'T -> System.Collections.Immutable.IImmutableStack<'T>
Function Push (value As T) As IImmutableStack(Of T) Implements IImmutableStack(Of T).Push

參數

value
T

要推送至堆疊的項目。

傳回

新的堆疊。

實作

備註

這個成員是明確介面成員實作, 只有在 ImmutableStack<T> 執行個體轉換成 IImmutableStack<T> 介面時,才能使用這個成員。

適用於