Skip to content

Instantly share code, notes, and snippets.

@dchw
Created May 1, 2014 06:47
Show Gist options
  • Save dchw/78048a950c45f47506b2 to your computer and use it in GitHub Desktop.
Save dchw/78048a950c45f47506b2 to your computer and use it in GitHub Desktop.
An object that is always true
public class AlwaysTrue
{
public static bool operator true(AlwaysTrue alwaysTrue)
{
return true;
}
public static bool operator false(AlwaysTrue boyfriend)
{
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment