PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Keyed­Collection(TKey, TItem) Class/Advisable­Keyed­Collection(TKey, TItem) Methods/Advisable­Keyed­Collection(TKey, TItem).​Insert­Item Method

AdvisableKeyedCollection<TKey, TItem>.InsertItem Method

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

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
protected override void InsertItem(
	int index,
	TItem item
)

Parameters

index
Type: System.Int32
The zero-based index at which item should be inserted.
item
Type: TItem
The object to insert. The value can be null for reference types.
Remarks

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

See Also