I was recently surprised to find out that C# supports the ‘goto’ command. I tend to believe that most of the readers of this post have already heard during their lessons in the university that using the ‘goto’ command is very bad, they should never use it and that is also the very same reason for removing this command¬†from most of today supported programming languages.

One example for the relevance of the ‘goto’ command can be the case of a software system that is about to end its life and a bug we need to fix. If using the ‘goto’ command can assist us with fixing the bug and that will take us a substantially smaller number of working hours then we should certainly¬†do it.

The following video clip shows and demonstrates the usage of the ‘goto’ command in C#.

Leave a Reply

Your email address will not be published. Required fields are marked *