PostSharp//API Reference/Post­Sharp.​Patterns.​Collections/Advisable­Collection<T>/Insert
Open sandboxFocus

Method Insert

Insert(Int32, T)

Inserts an item to the IList<T> at the specified index.

Declaration
public void Insert(int index, T item)
Parameters
Type Name Description
Int32 index

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

T item

The object to insert into the IList<T>.

Exceptions
Type Condition
ArgumentOutOfRangeException

index is not a valid index in the IList<T>.

NotSupportedException

The IList<T> is read-only.