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

AdvisableCollection<T>.InsertItems Method

InsertItems(Int32, T[])

Inserts elements into the underlying collection at the specified index.

protected virtual void InsertItems(int index, T[] collection)
Type Name Description
Int32 index

The zero-based index at which collection should be inserted.

T[] collection

The list of objects to insert. The values in the list can be null for reference types.



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