ImmutableStack Class

 

Provides a set of initialization methods for instances of the ImmutableStack<T> class.

NuGet package: System.Collections.Immutable (about immutable collections and how to install)

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

System.Object
  System.Collections.Immutable.ImmutableStack

public static class ImmutableStack

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreate<T>()

Creates an empty immutable stack.

System_CAPS_pubmethodSystem_CAPS_staticCreate<T>(T)

Creates a new immutable stack that contains the specified item.

System_CAPS_pubmethodSystem_CAPS_staticCreate<T>(T[])

Creates a new immutable stack that contains the specified array of items.

System_CAPS_pubmethodSystem_CAPS_staticCreateRange<T>(IEnumerable<T>)

Creates a new immutable stack that contains the specified items.

System_CAPS_pubmethodSystem_CAPS_staticPop<T>(IImmutableStack<T>, T)

Removes the specified item from an immutable stack.

This type is thread safe.

Return to top
Show: