VSM: Tricks with Goto in Visual Basic and C#

0
1051
Visual Studio Magazine

The Goto statement is often accused of creating spaghetti code. If you are a fan of Italian food, that might not seem so bad. But the misuse of this otherwise low-impact statement can reduce the maintainability of your application.

Goto tells your code to jump immediately from Point A to Point B. But there are limits to where you can jump, and you would be jumping to conclusions if you expected C# and Visual Basic to have the same limits. To discover some of these differences, jump on over to my latest Visual Studio Magazine article, “Tricks with Goto in Visual Basic and C#.”

[Image Credits: Visual Studio Magazine]

LEAVE A REPLY

Please enter your comment!
Please enter your name here