Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  queue  >  Count
queue class : Count getter

Description

Gets the number of elements that contained in the queue.

Syntax

queueInstance.Count

Arguments

None

Return value

ClassDescription
intThe number of elements that contained in the queue.

Sample code

//anyQueue is a instance of queue type.

int number = anyQueue.Count;

Notes

It's a wrapper of the System.Collections.Generic.Queue<t>.Count.

Links for reference

Copyright © Rice All rights reserved.