Seeing how C# does not support implicit fall-though in switch statements, why use the break keyword? All the code snippets I find on the web use the break keyword. Is it just habit from other languages?
Yes, nmaillet, I understand the fall-through exception for empty cases. In my reply I was referring to your use of multiple cases and then a break statement. However, in the OP I was asking why is a break statement used after a statement that would otherwise prevent fallthrough in C#.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...