Stack<T>.TryPop(T) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
bool TryPop([Runtime::InteropServices::Out] T % result);
C#
public bool TryPop(out T result);
member this.TryPop : 'T -> bool
Public Function TryPop (ByRef result As T) As Boolean
- result
- T
If present, the object at the top of the Stack<T>; otherwise, the default value of T
.
true
if there is an object at the top of the Stack<T>; false
if the Stack<T> is empty.
Termék | Verziók |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.
.NET-visszajelzés
A(z) .NET egy nyílt forráskód projekt. Visszajelzés adásához válasszon egy hivatkozást: