Tag Archives: goto

Emulating C/C++’s switch Fall Through with C#’s goto

Today, while doing some research in the MSDN Library, I came across an interesting use of C#’s goto statement. Instead of causing the application’s execution to jump to a named label—a practice frowned upon in the programming world—this example used goto to emulate C/C++’s switch statement’s fall through behavior. Continue reading