C# foreach Multidimensional Array vs. Jagged Array

preview_player
Показать описание
Compares iterating and enumerating through multidimensional arrays vs jagged arrays using foreach and for loops.
Рекомендации по теме
Комментарии
Автор

Great explanation.  Thanks for the great info!

lbify
Автор

Great video with lots of useful information that helped me better understand arrays; but, I thought the term multidimensional was actually referring to how these arrays are indexed which is multidimensionally. Question: If these are not multidimensional arrays; what would an actual multidimensional array look like? or does such a thing exist?

dougwarner
Автор

Please show me how to declare an 1d array with each element of this array is an array

xuanlocnguyen
Автор

The question is why use multi-dimensional arrays over simple arrays?

dergeneralist
Автор

Great explanation but the non-uniform syntax of multi and jagged arrays is an not a good decision from C# creators, although I get their reasoning but it's too much syntax for such concept. In java you just have the same syntax generalizing over all the array concepts.

mindasb
join shbcf.ru