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 |
T | item | The object to insert into the IList<T>. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
NotSupportedException | The IList<T> is read-only. |