IndexedList<TItem, TIndexer>.

RemoveAt(int) Method

Summary

Removes the item at the specified `index` by swapping the last item in this list into its place.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
IndexedList<TItem, TIndexer>

Syntax

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void RemoveAt(int index)

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.RemoveAt(System.Int32) because it avoids the need to move every item after the target down one place.

Attributes

Type Description
MethodImplAttribute

Parameters

Name Type Description
index int

Return Value

Type Description
void