Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

BigList<(Of <(<'T>)>)>..::..InsertRange Method (Int32, IEnumerable<(Of <(<'T>)>)>)

Inserts a collection of items at the given index in the BigList. All items at indexes equal to or greater than index increase their indices by the number of items inserted.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public void InsertRange(
	int index,
	IEnumerable<T> collection
)
Public Sub InsertRange ( _
	index As Integer, _
	collection As IEnumerable(Of T) _
)
public:
void InsertRange(
	int^ index, 
	IEnumerable<T>^ collection
)

Parameters

index
Type: Int32
The index to insert the collection at. After the insertion, the first item of the inserted collection is located at this index. The first item has index 0.
collection
Type: IEnumerable<(Of <(<'T>)>)>
The collection of items to insert at the given index.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero or greater than Count.
ArgumentNullExceptioncollection is null.

Remarks


The amount of time to insert an arbitrary collection in the BigList is O(M + log N), where M is the number of items inserted, and N is the number of items in the list.