IndexedList<TItem, TIndexer>.

Add(TItem) Method

Summary

Adds the `item` to the end of this list if it wasn't already in it and returns true if successful.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
IndexedList<TItem, TIndexer>

Syntax

public bool Add(TItem item)

Remarks

This method has O(1) complexity if the Animancer.IndexedList`2.Capacity doesn't need to be increased. Otherwise, it's O(N) since all existing items need to be copied into a new array.

Parameters

Name Type Description
item TItem

Return Value

Type Description
bool