C# foreach arrays

preview_player
Показать описание
Shows different syntax for instantiating a C# array. Also introduces C#'s foreach control structure for enumerating through an array's elements.
Рекомендации по теме
Комментарии
Автор

Gotta be honest of all the videos i have to watch to code this in pen and paper you make the best ones

santiagogallego
Автор

Your videos are good enough that if I think I really know something you are talking about, I will just watch 'em at 2-x speed, if I make it all the way thru without learning anything new, I know I really knew that micro-topic very well -- it does happen sometimes. As stated before, a lot of C# videos breeze thru topics glossing over anything too weird or interesting or deemed unnecessarily insightful, leaving gotcha moments on interviews and actual programming. You beat these things to death like in Clubby the Seal....

jvsnyc
Автор

so is it always better to use foreach rather than for loop? when displaying an array? thanks for answering.

hewsman