ImmutableInterlocked.Push<T>(ImmutableStack<T>, T) 方法

定義

將一個新元素推到堆疊上。

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)

類型參數

T

堆疊裡的物品種類。

參數

location
ImmutableStack<T>

堆疊要更新。

value
T

推到堆疊上的價值。

適用於