Click or drag to resize
DequeTInsertRange Method
Inserts a collection of items at the given index in the Deque. All items at indexes equal to or greater than index increase their indices in the Deque by the number of items inserted.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public void InsertRange(
	int index,
	IEnumerable<T> collection
)

Parameters

index
Type: SystemInt32
The index in the Deque to insert the collection at. After the insertion, the first item of the inserted collection is located at this index. The front item in the Deque has index 0.
collection
Type: System.Collections.GenericIEnumerableT
The collection of items to insert at the given index.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero or greater than Count.
Remarks
The amount of time to insert a collection in the Deque is proportional to the distance of index from the closest end of the Deque, plus the number of items inserted (M): O(M + Min(index, Count - index)).
See Also