B
Barry Kelly
Ben said:do-while and switch require the braces
---8<---
class App
{
static void Main()
{
do System.Console.WriteLine(); while(false);
}
}
--->8---
C# switch does require braces, although consider C/C++:
---8<---
int main(void)
{
switch (0);
return 0;
}
--->8---
(I in no way condone use of the above forms; though I'm ambivalent about
requiring {} on if-statement sub-blocks.)
-- Barry