PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Keyed­Collection<TKey, TItem>Remove­Items
Open sandboxFocus

AdvisableKeyedCollection<TKey, TItem>.RemoveItems Method

RemoveItems(Int32, Int32)

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

Declaration
protected override TItem[] 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
TItem[]

The list of elements that were removed.

Overrides
PostSharp.Patterns.Collections.AdvisableCollection<TItem>.RemoveItems(System.Int32, System.Int32)
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.