System.Collections.Generic.Stack
Added in .NET 2.0
A stack represents a last in, first out collection (LIFO)
The principle methods for adding to and removing from are the Push and Pop methods
generic stack of objects
a list in first out structure
Methods
Clear | Removes all objects |
Contains | Determines if an element exists |
CopyTo | Copies the stack elements to an existing one-dimensional array |
Count | |
GetEnumerator | |
Peek | Returns the object at the top of the stack without removing it |
Pop | Removes the object at the top of the stack |
Push | Inserts an object at the top of the stack |
ToArray | Copies the stack elements to a new one dimensional array |
System.Collections.Stack
This is not to be confused with the Non Generic Stack Class introduced in .NET 1.1
System.Collections.Stack
© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext