Skip to content

Instantly share code, notes, and snippets.

@leviwilson
Created September 23, 2011 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leviwilson/1236687 to your computer and use it in GitHub Desktop.
Save leviwilson/1236687 to your computer and use it in GitHub Desktop.
Crap VB.NET Early Returns
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