Inserts the specified element at the specified position in this list.
Declaration Syntax
Parameters
Remarks
Shifts the element currently at that position (if any) and any
subsequent elements to the right (adds one to their indices).
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is out of range.
|
ArgumentException | elementAt already exists in the list.
|