Stack Methods

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The Stack type exposes the following members.

  Name Description
Public method Clear Removes all objects from the Stack.
Public method Clone Creates a shallow copy of the Stack.
Public method Contains Determines whether an element is in the Stack.
Public method CopyTo Copies the Stack to an existing one-dimensional Array, starting at the specified array index.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an IEnumerator for the Stack.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Peek Returns the object at the top of the Stack without removing it.
Public method Pop Removes and returns the object at the top of the Stack.
Public method Push Inserts an object at the top of the Stack.
Public method ToArray Copies the Stack to a new array.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show: