Class Stack
Represents the collection of objects that are accessed in a last-in, first out fashion.
Inheritance
System.Object
Stack
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Olap.MDXQueryParser
Assembly: Syncfusion.Olap.Base.dll
Syntax
public class Stack
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. |