I am on a weird kick of seeing how few lines I can make my code. Is there a way to condense this to inline case statements?
switch (FIZZBUZZ)
{
case "Fizz":
{
//Do one process
break;
}
case "Buzz":
{
//Do one process
break;
}
case "FizzBuzz":
{
//Do one process
break;
}
}
to look something like this:
switch (FIZZBUZZ)
{
case "Fizz": //Do one process
case "Buzz": //Do one process
case "FizzBuzz": //Do one process
}