Stack.Peek Method |
System.Collections.Stack
stackvariable .Peek( )
Object
Returns the first item in the stack as an Object, but does not remove it from the stack
The Peek method is similar to the Stack object's Pop method, except that it leaves the stack intact.
Stack.Pop Method