Share via


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

Definition

Legt ein neues Element auf dem Stapel ab.

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)

Typparameter

T

Der Typ der Elemente im Stapel.

Parameter

location
ImmutableStack<T>

Der zu aktualisierende Stapel.

value
T

Der Wert, der auf dem Stapel abgelegt werden soll.

Gilt für: