Changes

Jump to: navigation, search

The C Sharp switch Statement

466 bytes added, 20:38, 16 January 2008
Using the C# goto and continue statements
}
</pre>
 
Whilst the ''goto'' statement can be used to jump to any labeled location its use is strongly discouraged. The use outlined above is really the only acceptable use of the ''goto'' statement in a modern object oriented language. As any veteran programmer will tell you, if you find yourself in a position where a ''goto'' statement is your only way of achieving something then you need to re-think and re-structure your code so that you no longer need the ''goto''.

Navigation menu