Method Insert
Insert(int, object?)
Inserts an item to the IList at the specified index.
public override void Insert(int index, object? value)
Parameters
indexintThe zero-based index at which
valueshould be inserted.valueobjectThe object to insert into the IList.
Exceptions
- ArgumentOutOfRangeException
indexis not a valid index in the IList.- NotSupportedException
The IList is read-only.
-or-
The IList has a fixed size.
- NullReferenceException
valueis null reference in the IList.