Adds the elements of the specified collection to the end of the
ListT.
Namespace: System.Collections.GenericAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public void AddRange(
IEnumerable<T> collection
)
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
The collection whose elements should be added to the end of the ListT. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.
Exceptions See Also