Stack Members
The following tables list the members exposed by the Stack type.
Public Constructors
Name | Description | |
---|---|---|
![]() |
Stack | Initializes a new instance of the Stack class that is empty and that has the default initial capacity. |
Public Properties
Name | Description | |
---|---|---|
![]() |
Count | Gets the number of elements contained in the Stack. |
![]() |
IsSynchronized | Gets a value indicating whether the current stack is synchronized. Always returns false. |
![]() |
SyncRoot | Gets an object that can be used to synchronize access to the Stack. |
Public Methods
Name | Description | |
---|---|---|
![]() |
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 elements to an existing one-dimensional Array starting at the specified array index. |
![]() |
Equals | (Inherited from Object.) |
![]() |
GetEnumerator | Returns an enumerator that iterates through the Stack. |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
Peek | Returns the object at the top of the Stack without removing it. |
![]() |
Pop | Removes the object at the top of the Stack, and returns it. |
![]() |
Push | Inserts an object at the top of the Stack. |
![]() |
ReferenceEquals | (Inherited from Object.) |
![]() |
ToArray | Copies the Stack to a new array, in the same order Pop would return the items. |
![]() |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |