Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Collection(T) Class / Advisable­Collection(T) Methods / Advisable­Collection(T).​Remove­Items Method

AdvisableCollection<T>.RemoveItems Method

Removes the specified number of elements starting at the specified index of the underlying collection.

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.43.0 (5.0.43.0)
Syntax
C#
protected virtual T[] RemoveItems(
	int index,
	int count
)

Parameters

index
Type: System.Int32
The zero-based index of the element to remove.
count
Type: System.Int32
The number of the elements to remove.

Return Value

Type: T[]
The list of elements that were removed.
Remarks

Note Note
This method does not cause the advices to be executed. It should be invoked only from inside the scope of the ExecuteWithAdvices<TResult, TAction>(ObjectAccessLevel, TAction) method.

See Also