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

ClearRemoves all objects
ContainsDetermines if an element exists
CopyToCopies the stack elements to an existing one-dimensional array
Count 
GetEnumerator 
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

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