Прочетете на английски Редактиране

Споделяне чрез


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

Definition

Removes an element from the top of the stack, if there is an element to remove.

C#
public static bool TryPop<T>(ref System.Collections.Immutable.ImmutableStack<T> location, out T value);

Type Parameters

T

The type of items in the stack.

Parameters

location
ImmutableStack<T>

The stack to update.

value
T

Receives the value removed from the stack, if the stack is not empty.

Returns

true if an element is removed from the stack; otherwise, false.

Applies to

Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0