PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Collection<T>Remove­Range
Open sandboxFocus

AdvisableCollection<T>.RemoveRange Method

RemoveRange(Int32, Int32)

Removes a range of elements from the AdvisableCollection<T>.

Declaration
public void RemoveRange(int index, int count)
Parameters
Type Name Description
Int32 index

The zero-based starting index of the range of elements to remove.

Int32 count

The number of elements to remove.

Exceptions
Type 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 AdvisableCollection<T>.