PostSharp4.3/API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Collection(T) Class/Advisable­Collection(T) Methods/Advisable­Collection(T).​Remove­Range Method
AdvisableCollection<T>.RemoveRange Method
Removes a range of elements from the AdvisableCollection<T>.

Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public void RemoveRange(
	int index,
	int count
)

Parameters

index
Type: System.Int32
The zero-based starting index of the range of elements to remove.
count
Type: System.Int32
The number of elements to remove.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException

index is less than 0.

-or-

count is less than 0.

ArgumentExceptionindex and count do not denote a valid range of elements in the AdvisableCollection<T>.
See Also