BoundsCheckableList1.Insert

BoundsCheckableList<T>.Insert method

Inserts an element into the System.Collections.Generic.List at the specified index.

public void Insert(int index, T item)
ParameterTypeDescription
indexInt32The zero-based index at which item should be inserted.
itemTThe object to insert. The value can be null for reference types.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionindex is less than 0. -or- index is greater than Count.

See Also