Method RemoveRange
RemoveRange(int, int)
Removes N pointers in a range, shifting everything above the range down by N. Decrements the length by N.
Declaration
public void RemoveRange(int index, int count)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the first pointer to remove. |
int | count | The number of pointers to remove. |
Remarks
If you don't care about preserving the order of the pointers, RemoveRangeSwapBackWithBeginEnd
is a more efficient way to remove pointers.
Exceptions
Type | Condition |
---|---|
IndexOutOfRangeException | Thrown if |
ArgumentOutOfRangeException | Thrown if |