AdvisableCollection<T>.Insert Method |
Inserts an item to the IList<T> 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#
public void Insert( 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 into the IList<T>.
Implements
IList<T>.Insert(Int32, T)Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is not a valid index in the IList<T>. |
NotSupportedException | The IList<T> is read-only. |