Megadocs 0.0.1
All of megapop's internal libraries
Megapop.MegaCore.ListUtil Class Reference

Static Public Member Functions

static List< T > Create< T > (int count, T value=default)
 Create a new list with More...
 
static void MinCapacity< T > ([CanBeNull] ref List< T > list, int capacity)
 Sets the capacity of the list. Creates a object if More...
 
static void AddCapacity< T > ([CanBeNull] ref List< T > list, int extraEntries)
 Reserve enough room for More...
 

Member Function Documentation

◆ AddCapacity< T >()

static void Megapop.MegaCore.ListUtil.AddCapacity< T > ( [CanBeNull] ref List< T >  list,
int  extraEntries 
)
inlinestatic

Reserve enough room for

extraEntries

new entries. Creates a object if

list

is null.

◆ Create< T >()

static List< T > Megapop.MegaCore.ListUtil.Create< T > ( int  count,
value = default 
)
inlinestatic

Create a new list with

count

entries set to

value

.

◆ MinCapacity< T >()

static void Megapop.MegaCore.ListUtil.MinCapacity< T > ( [CanBeNull] ref List< T >  list,
int  capacity 
)
inlinestatic

Sets the capacity of the list. Creates a object if

list

is null. Does not reduce the capacity if

capacity

is lower than the list capacity.


The documentation for this class was generated from the following file: