Created
April 12, 2014 07:19
-
-
Save dchw/10522804 to your computer and use it in GitHub Desktop.
Arbitrary assignment of values to enum typed variables.
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
var hero = (Superhero)42; | |
var powers = Powers.Looks | Powers.Money | Powers.Smart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment