PostSharp//API Reference/Post­Sharp.​Patterns.​Collections/Advisable­Keyed­Collection<TKey, TItem>/Insert­Item
Open sandboxFocus

Method InsertItem

InsertItem(Int32, TItem)

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

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

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

TItem item

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

PostSharp.Patterns.Collections.AdvisableCollection<TItem>.InsertItem(System.Int32, TItem)