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. |