Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

Deque<(Of <(<'T>)>)>..::..RemoveRange Method

Removes a range of items at the given index in the Deque. All items at indexes greater than index move down count indices in the Deque.

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

Syntax


public void RemoveRange(
	int index,
	int count
)
Public Sub RemoveRange ( _
	index As Integer, _
	count As Integer _
)
public:
void RemoveRange(
	int^ index, 
	int^ count
)

Parameters

index
Type: Int32
The index in the list to remove the range at. The first item in the list has index 0.
count
Type: Int32
The number of items to remove.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero or greater than or equal to Count, or count is less than zero or too large.

Remarks


The amount of time to delete count items in the Deque is proportional to the distance to the closest end of the Deque: O(Min(index, Count - index - count)).