System.Collections.Generic.Stack

generic stack of objects
a list in first out structure


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



ClearMethod that removes all objects
ContainsMethod that determines if an element exists
CopyToMethod that copies the stack elements to an existing one-dimensional array
Count 
GetEnumerator 
PeekReturns the object at the top of the stack without removing it
PopMethods that removes the object at the top of the stack
PushMethod that inserts an object at the top of the stack
ToArrayCopies the stack elements to a new one dimensional array


System.Collections.Stack

Legacy



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