Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  queue  >  Peek()
queue class : Peek() method

Description

Returns the instance at the top of the queue without removing.

Syntax

queueInstance.Peek()

Arguments

None

Return value

ClassDescription
someClassThe 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().

Links for reference

Copyright © Rice All rights reserved.