ImmutableInterlocked.TryPop<T>(ImmutableStack<T>, T) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Supprime un élément du haut de la pile, s’il existe un élément à supprimer.
public:
generic <typename T>
static bool TryPop(System::Collections::Immutable::ImmutableStack<T> ^ % location, [Runtime::InteropServices::Out] T % value);
public static bool TryPop<T> (ref System.Collections.Immutable.ImmutableStack<T> location, out T value);
static member TryPop : ImmutableStack * 'T -> bool
Public Shared Function TryPop(Of T) (ByRef location As ImmutableStack(Of T), ByRef value As T) As Boolean
Paramètres de type
- T
Type des éléments dans la pile.
Paramètres
- location
- ImmutableStack<T>
Pile à mettre à jour.
- value
- T
Reçoit la valeur supprimée de la pile, si la pile n’est pas vide.
Retours
true si un élément est supprimé de la pile ; sinon, false.