Created
September 23, 2011 03:31
-
-
Save leviwilson/1236687 to your computer and use it in GitHub Desktop.
Crap VB.NET Early Returns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Sub exampleBtn_Click(Object sender, EventArgs e) | |
{ | |
if( txtBox1.Value <> "" ) then | |
if( txtBox1.Value = "some other bad thing" ) then | |
Exit Sub | |
end if | |
end if | |
' 50 million things like this, sometimes nested deeper | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment