This documentation is archived and is not being maintained.
Represents a variable size last-in-first-out (LIFO) collection of instances of the same arbitrary type.
The following tables list the members exposed by the Stack generic type.
(see also Protected Methods )
|Clear||Removes all objects from 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 enumerator 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)|
|ToArray||Copies the Stack to a new array.|
|ToString||Returns a String that represents the current Object. (inherited from Object)|
|TrimExcess||Sets the capacity to the actual number of elements in the Stack, if that number is less than 90 percent of current capacity.|