Stack Members
.NET Framework 2.0
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
)
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) |
Name | Description | |
---|---|---|
![]() ![]() ![]() | System.Collections.Generic.IEnumerable<T>.GetEnumerator | Returns an enumerator that iterates through the collection. |
![]() ![]() ![]() | System.Collections.ICollection.CopyTo | Copies the elements of the ICollection to an Array, starting at a particular Array index. |
![]() ![]() ![]() | System.Collections.IEnumerable.GetEnumerator | Returns an enumerator that iterates through a collection. |
![]() ![]() ![]() | System.Collections.ICollection.IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). |
![]() ![]() ![]() | System.Collections.ICollection.SyncRoot | Gets an object that can be used to synchronize access to the ICollection. |
Show: