Inserts a new item at the given index in the BigList. All items at indexes
equal to or greater than index move up one index.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic override sealed void Insert(
int index,
T item
)
public:
virtual void Insert(
int index,
T item
) override sealed
Parameters
- index
- Type: SystemInt32
The index to insert the item at. After the
insertion, the inserted item is located at this index. The
first item has index 0. - item
- Type: T
The item to insert at the given index.
Implements
IListTInsert(Int32, T)
Exceptions
RemarksThe amount of time to insert an item is O(log N), no matter where
in the list the insertion occurs. Inserting an item at the beginning or end of the
list is O(N).
See Also