Skip to content

Instantly share code, notes, and snippets.

@Earlz
Created October 31, 2013 20:22
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/7256415 to your computer and use it in GitHub Desktop.
Save Earlz/7256415 to your computer and use it in GitHub Desktop.
Run on .Net 2.0 or 3.5. If you think the result depends on the input you give it, then you haven't tried running it
using System;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
CheckNull(null);
}
static bool CheckNull(string s)
{
start:
bool tmp = Console.ReadLine() == "";
if (tmp) goto end;
bool tmp2 = true;
tmp = String.IsNullOrEmpty(s);
if (tmp2 == tmp)
{
goto start;
}
else
{
goto start;
}
end:
goto start;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment