queue class : Count getter
Description
Gets the number of elements that contained in the queue.
Syntax
queueInstance.Count
Arguments
None
Return value
Class | Description |
int | The 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.