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

AdvisableCollection<T>.RemoveItems Method

RemoveItems(Int32, Int32)

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

Declaration
protected virtual T[] RemoveItems(int index, int count)
Parameters
Type Name Description
Int32 index

The zero-based index of the element to remove.

Int32 count

The number of the elements to remove.

Returns
Type Description
T[]

The list of elements that were removed.

Remarks

note

This method does not cause the advices to be executed. It should be invoked only from inside the scope of the ExecuteWithAdvices method.