Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

2 dimensional array in C#

Can the second dimension be initialized as dynamically sizeable?

like image 510
user225626 Avatar asked Nov 27 '25 20:11

user225626


1 Answers

No (since C# array dimensions are fixed), but you could create an array of List<T>.

like image 181
Andrew Hare Avatar answered Nov 30 '25 11:11

Andrew Hare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!