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

AdvisableCollection<T>.InsertItem Method

InsertItem(Int32, T)

Inserts an element into the underlying collection at the specified index.

Declaration
protected virtual void InsertItem(int index, T item)
Parameters
Type Name Description
Int32 index

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

T item

The object to insert. The value can be null for reference types.

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.