Last active
August 29, 2015 14:00
-
-
Save dchw/c9057c780c8cc1347b42 to your computer and use it in GitHub Desktop.
Solving a paradox with C#
This file contains hidden or 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 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