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

AdvisableKeyedCollection<TKey, TItem>.InsertItem Method

InsertItem(Int32, TItem)

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

Declaration
protected override void InsertItem(int index, TItem item)
Parameters
Type Name Description
Int32 index

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

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