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