stack class : Count getter
Description
Gets the number of elements that contained in the stack.
Syntax
stackInstance.Count
Arguments
None
Return value
Class | Description |
int | The number of elements that contained in the stack. |
Sample code
//anyStack is a instance of stack type.
int number = anyStack.Count;
Notes
It's a wrapper of the System.Collections.Generic.Stack<t>.Count.