Home News DOC Class DL Others Cooker
Class  >  stack  >  Count
stack class : Count getter

Description

Gets the number of elements that contained in the stack.

Syntax

stackInstance.Count

Arguments

None

Return value

ClassDescription
intThe 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.

Links for reference

Copyright © Rice All rights reserved.