Skip to content

Instantly share code, notes, and snippets.

@dchw
Last active August 29, 2015 14:00
Show Gist options
  • Save dchw/c9057c780c8cc1347b42 to your computer and use it in GitHub Desktop.
Save dchw/c9057c780c8cc1347b42 to your computer and use it in GitHub Desktop.
Solving a paradox with C#
void Main()
{
var answer = new ThisIsTrue();
if(answer)
Console.WriteLine("Paradox ain't nuthin for .NET");
}
public class ThisIsTrue
{
public static bool operator true(ThisIsTrue statement)
{
return statement ? false : true;
}
public static bool operator false(ThisIsTrue statement)
{
return statement ? true : false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment