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

Description

Gets the number of elements that contained in the list.

Syntax

listInstance.Count

Arguments

None

Return value

ClassDescription
intThe number of elements that contained in the list.

Sample code

//anyList is a instance of list type.

int number = anyList.Count;

Notes

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

Links for reference

Copyright © Rice All rights reserved.