list class : AddRange(class) method
Description
Adds the specified list to the end of the list.
Syntax
listInstance.AddRange(someListClass items)
Arguments
Class | Name | Description |
someListClass | items | A 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>).