StackT Class |
Namespace: System.Collections.Generic
public class Stack<T> : IEnumerable<T>, ICollection, IEnumerable
The StackT type exposes the following members.
Name | Description | |
---|---|---|
![]() | StackT | Initializes a new instance of the StackT class that is empty and has the default initial capacity. |
![]() | StackT(IEnumerableT) | Initializes a new instance of the StackT class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied. |
![]() | StackT(Int32) | Initializes a new instance of the StackT class that is empty and has the specified initial capacity or the default initial capacity, whichever is greater. |
Name | Description | |
---|---|---|
![]() | Clear | Removes all objects from the StackT. |
![]() | Contains |
Determines whether an element is in the StackT.
|
![]() | CopyTo | Copies the StackT to an existing one-dimensional Array, starting at the specified array index. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator for the StackT. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Peek | Returns the object at the top of the StackT without removing it. |
![]() | Pop | Removes and returns the object at the top of the StackT. |
![]() | Push | Inserts an object at the top of the StackT. |
![]() | ToArray | Copies the StackT 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 StackT, if that number is less than 90 percent of current capacity. |