Click or drag to resize
ListTAddRange Method

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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
ExceptionCondition
ArgumentNullExceptioncollection is null.
See Also