Skip to content

Instantly share code, notes, and snippets.

@Earlz
Created October 31, 2013 20:04
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 Earlz/7256160 to your computer and use it in GitHub Desktop.
Save Earlz/7256160 to your computer and use it in GitHub Desktop.
using System;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
CheckNull(null);
}
static bool CheckNull(string s)
{
start:
bool tmp = false;
bool tmp2 = true;
tmp = String.IsNullOrEmpty(s);
if (tmp2 == tmp)
{
goto start;
}
else
{
goto start;
}
end:
goto start;
}
}
}
@joefeser
Copy link

should this not get caught in a tight loop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment