ImmutableStack.Pop<T> Method (IImmutableStack<T>, T)

 

Removes the specified item from an immutable stack.

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

public static IImmutableStack<T> Pop<T>(
	this IImmutableStack<T> stack,
	out T value
)

Parameters

stack
Type: System.Collections.Immutable.IImmutableStack<T>

The stack to modify.

value
Type: T

The item to remove from the stack.

Return Value

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

A stack; never null.

Type Parameters

T

The type of items contained in the stack.

Return to top
Show: