list class : Add(class) method

Description

Adds an instance to the end of the list.

Syntax

listInstance.Add(someClass item)

Arguments

ClassNameDescription
someClassitemAn instance that will be added.

Return value

None

Sample code

//anyList is a instance of list type.

anyList.Add(5);

Notes

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

Links for reference

Copyright © Rice All rights reserved.