This documentation is archived and is not being maintained.
.NET Framework 3.0
Represents a simple last-in-first-out (LIFO) non-generic collection of objects.
The following tables list the members exposed by the Stack type.
(see also Protected Methods )
|Clear||Removes all objects from the Stack.|
|Clone||Creates a shallow copy of the Stack.|
|Contains||Determines whether an element is in the Stack.|
|CopyTo||Copies the Stack to an existing one-dimensional Array, starting at the specified array index.|
|Equals||Overloaded. Determines whether two Object instances are equal. (inherited from Object)|
|GetEnumerator||Returns an IEnumerator for the Stack.|
|GetHashCode||Serves as a hash function for a particular type. (inherited from Object)|
|GetType||Gets the Type of the current instance. (inherited from Object)|
|Peek||Returns the object at the top of the Stack without removing it.|
|Pop||Removes and returns the object at the top of the Stack.|
|Push||Inserts an object at the top of the Stack.|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (inherited from Object)|
|Synchronized||Returns a synchronized (thread safe) wrapper for the Stack.|
|ToArray||Copies the Stack to a new array.|
|ToString||Returns a String that represents the current Object. (inherited from Object)|