ImmutableStack<T>.Push Method (T)

 

Inserts an object at the top of the immutable stack and returns the new stack.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public ImmutableStack<T> Push(
	T value
)

Parameters

value
Type: T

The object to push onto the stack.

Return Value

Type: System.Collections.Immutable.ImmutableStack<T>

The new stack.

Return to top
Show: