menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Stack - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Stack

    Represents the collection of objects that are accessed in a last-in, first out fashion.

    Inheritance
    System.Object
    Stack
    Namespace: Syncfusion.Olap.UWP.MDXQueryParser
    Assembly: Syncfusion.Olap.UWP.dll
    Syntax
    public class Stack : Object

    Constructors

    Stack()

    Declaration
    public Stack()

    Methods

    IsEmpty()

    Determines whether the stack is empty or if it contains elements.

    Declaration
    public bool IsEmpty()
    Returns
    Type Description
    System.Boolean

    True if the stack is empty; false otherwise.

    Peek()

    Returns the object at the top of the stack without removing it.

    Declaration
    public object Peek()
    Returns
    Type Description
    System.Object

    The object at the top of the stack.

    Pop()

    Removes and returns the object at the top of the stack.

    Declaration
    public object Pop()
    Returns
    Type Description
    System.Object

    The object removed from the top of the stack.

    Push(Object)

    Inserts an object at the top of the stack.

    Declaration
    public void Push(object element)
    Parameters
    Type Name Description
    System.Object element

    The object to push onto the stack.

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved