Removes a range of elements from the
ListT.
Namespace: System.Collections.GenericAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public void RemoveRange(
int index,
int count
)
Parameters
- index
- Type: SystemInt32
The zero-based starting index of the range of elements to remove. - count
- Type: SystemInt32
The number of elements to remove.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | index is less than 0.-or-count is less than 0. |
ArgumentException | index and count do not denote a valid range of elements in the ListT. |
See Also