편집

다음을 통해 공유


ImmutableInterlocked.Push<T>(ImmutableStack<T>, T) Method

Definition

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