Sage Modeling and Simulation Library

EventedList<(Of <(<'T>)>)>..::..InsertRange Method

Inserts the elements of a collection into the List at the specified index.

Namespace:  Highpoint.Sage.Utility
Assembly:  Sage4 (in Sage4.dll)

Syntax


public void InsertRange(
	int index,
	IEnumerable<T> collection
)

Parameters

index
Type: Int32
The zero-based index at which the new elements should be inserted.
collection
Type: IEnumerable<(Of <(<'T>)>)>
The collection whose elements should be inserted into the List. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than 0.-or-index is greater than Count.
ArgumentNullExceptioncollection is null.