Stack Methods
.NET Framework 3.0
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| 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. |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |