Skip to content

Instantly share code, notes, and snippets.

@jasonmead
Created December 30, 2011 15:16
Show Gist options
  • Save jasonmead/1540274 to your computer and use it in GitHub Desktop.
Save jasonmead/1540274 to your computer and use it in GitHub Desktop.
Go To Hell Extension method
public static class Inferno {
public static bool GoToHell(this Person person) {
return person.GoTo(new HellLocation());
}
public static bool GoTo(this Person person, Location location) {
person.Location = location;
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment