Share via


ImmutableStack<T>.IImmutableStack<T>.Push(T) Método

Definição

Insere um elemento na parte superior da pilha imutável e retorna a nova pilha.

 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

Parâmetros

value
T

O elemento a ser enviado por push para a pilha.

Retornos

A nova pilha.

Implementações

Comentários

Este membro é uma implementação do membro de interface explícita. Ele só pode ser usado quando a instância de ImmutableStack<T> é convertida em uma interface de IImmutableStack<T>.

Aplica-se a