CircularListTInsert Method
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public void Insert(
int index,
T item
)
Public Sub Insert (
index As Integer,
item As T
)
public:
virtual void Insert(
int index,
T item
) sealed
abstract Insert :
index : int *
item : 'T -> unit
override Insert :
index : int *
item : 'T -> unit
- index Int32
- The zero-based index at which item should be inserted.
- item T
- The object to insert into the CircularListT.
IListTInsert(Int32, T) Inserting an item at the first or last position are O(1) operations if no capacity increase is needed. Otherwise, insertion is an O(n) operation.