Skip to content

Instantly share code, notes, and snippets.

@TheLeftExit
Last active October 11, 2023 13:37
Show Gist options
  • Save TheLeftExit/71dd491db5979131a4b3e416e10a505b to your computer and use it in GitHub Desktop.
Save TheLeftExit/71dd491db5979131a4b3e416e10a505b to your computer and use it in GitHub Desktop.
I had an epiphany at 12 AM
#pragma warning disable CS0183
#pragma warning disable CS0660
#pragma warning disable CS0661
long D = 12;
// if it compiles, it has to be true
var axiom = (My)8==D is long;
public class My {
public static implicit operator My(long value) => new();
public static bool operator ==(My left, bool right) => true;
public static bool operator !=(My left, bool right) => false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment