Click or drag to resize
ArrayListInsertRange Method
Inserts the elements of a collection into the ArrayList at the specified index.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual void InsertRange(
	int index,
	ICollection c
)

Parameters

index
Type: SystemInt32
The zero-based index at which the new elements should be inserted.
c
Type: System.CollectionsICollection
The ICollection whose elements should be inserted into the ArrayList. The collection itself cannot be null, but it can contain elements that are null.
Exceptions
ExceptionCondition
ArgumentNullExceptionc is null.
ArgumentOutOfRangeExceptionindex is less than zero.-or- index is greater than Count.
NotSupportedExceptionThe ArrayList is read-only.-or- The ArrayList has a fixed size.
See Also