Stack Methods
.NET Framework 3.5
The Stack type exposes the following members.
| 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 to an existing one-dimensional Array, starting at the specified array index. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetEnumerator | Returns an IEnumerator 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.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (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. |
|
Synchronized | Returns a synchronized (thread safe) wrapper for the Stack. |
|
ToArray | Copies the Stack to a new array. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |