Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  list  >  Clear()
list class : Clear() method

Description

Removes all elements from the list.

Syntax

listInstance.Clear()

Arguments

None

Return value

None

Sample code

//anyList is a instance of list type.

anyList.Clear();

Notes

It's a wrapper of the System.Collections.Generic.List<t>.Clear().

Links for reference

Copyright © Rice All rights reserved.