Polarith AI
1.8

◆ ResizeList< T >()

static void ResizeList< T > ( IList< T >  list,
int  size 
)
static

Resizes a IList<T> to the given size .

Therefore, newly added elements are initialized with newT ().

Template Parameters
TThe element type of the list.
Parameters
listThe list which should be resized.
sizeThe number of elements which the list should contain.
Exceptions
System.NullReferenceExceptionIf list is null.
Type Constraints
T :new() 
Imprint