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


ClearRemoves all objects
ContainsDetermines if an element exists
CopyToCopies the stack elements to an existing one-dimensional array
PeekReturns the object at the top of the stack without removing it
PopRemoves the object at the top of the stack
PushInserts an object at the top of the stack
ToArrayCopies the stack elements to a new one dimensional array


This is not to be confused with the Non Generic Stack Class introduced in .NET 1.1


© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext