Polarith AI
1.8

◆ ResizeListDefault< T >()

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

Resizes a IList<T> to the given size .

Therefore, newly added elements are initialized with its default value/constructor.

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.
Imprint