Brief, maybe a silly question: how do you create memory for n Elements when creating a List <type>? The constructor allows you to specify only the approximate capacity, but without selection.
If you can't do that, then how? I want to allocate memory for n elements for 1 line, using, say, addRange (INumerable ...).
I heard something about single-line users using lambda expressions, can they somehow help here, or are they only used when sorting / selecting elements? Tell me please. Do not kick), although no, better kick :)
PS I also need to allocate memory for the List <List <Type>>, if you can also, write)