ImmutableInterlocked.Push<T>(ImmutableStack<T>, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Pushes a new element onto the stack.
public:
generic <typename T>
static void Push(System::Collections::Immutable::ImmutableStack<T> ^ % location, T value);
public static void Push<T> (ref System.Collections.Immutable.ImmutableStack<T> location, T value);
static member Push : ImmutableStack * 'T -> unit
Public Shared Sub Push(Of T) (ByRef location As ImmutableStack(Of T), value As T)
Type Parameters
- T
The type of items in the stack.
Parameters
- location
- ImmutableStack<T>
The stack to update.
- value
- T
The value to push on the stack.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.