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

Description

Adds the specified list to the end of the list.

Syntax

listInstance.AddRange(someListClass items)

Arguments

ClassNameDescription
someListClassitemsA list that will be added.

Return value

None

Sample code

//anyList is a instance of list type.

//otherList is a instance of list type.

anyList.AddRange(otherList);

Notes

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

Links for reference

Copyright © Rice All rights reserved.