AdvisableCollection<T>.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: 2023.0.3.0 (2023.0.3.0)
C#
protected virtual void InsertItem( int index, T item )
Parameters
- index
- Type: System.Int32
The zero-based index at which item should be inserted. - item
- Type: T
The object to insert. The value 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. |