Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

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

Inserts a BigList 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,
	BigList<T> list
)
Public Sub InsertRange ( _
	index As Integer, _
	list As BigList(Of T) _
)
public:
void InsertRange(
	int^ index, 
	BigList<T>^ list
)

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.
list
Type: Wintellect.PowerCollections..::..BigList<(Of <(<'T>)>)>
The BigList of items to insert at the given index.

Exceptions


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

Remarks


The amount of time to insert another BigList is O(log N), where N is the number of items in the list, regardless of the number of items in the inserted list. Storage is shared between the two lists until one of them is changed.