IndexedList<TItem, TIndexer>.

Insert(int, TItem) Method

Summary

Adds the `item` to this list at the specified `index`.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
IndexedList<TItem, TIndexer>

Syntax

public void Insert(int index, TItem item)

Remarks

This method has O(1) complexity.

This does not maintain the order of items, but is more efficient than System.Collections.Generic.List`1.Insert(System.Int32,`0) because it avoids the need to move every item after the target up one place.

Parameters

Name Type Description
index int
item TItem

Return Value

Type Description
void