Created
December 30, 2011 15:16
-
-
Save jasonmead/1540274 to your computer and use it in GitHub Desktop.
Go To Hell Extension method
This file contains 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
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