queue class : Peek() method
Description
Returns the instance at the top of the queue without removing.
Syntax
queueInstance.Peek()
Arguments
None
Return value
Class | Description |
someClass | The instance of the top of the queue. |
Sample code
//anyQueue is a instance of queue{string} type.
string str = anyQueue.Peek();
Notes
It's a wrapper of the System.Collections.Generic.Queue<t>.Peek().