Class Stack<T>
A stack implementation based on a memory array.
Inheritance
System.Object
Stack<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class Stack<T>
Type Parameters
|
T
|
Constructors
Stack()
Creates a new stack.
Declaration
public Stack()
Properties
Count
Gets the number of elements on this stack.
Declaration
public int Count { get; }
Property Value
|
System.Int32
|
Methods
Peek()
Returns the element at the top.
Declaration
public T Peek()
Returns
|
T
|
Pop()
Pops an element from the stack.
Declaration
public T Pop()
Returns
|
T
|
Push(T)
Pushes a new element.
Declaration
public void Push(T element)
Parameters
|
T
element
|