Skip to content

Instantly share code, notes, and snippets.

@jbogard
Created May 1, 2012 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbogard/2567716 to your computer and use it in GitHub Desktop.
Save jbogard/2567716 to your computer and use it in GitHub Desktop.
public class Color : Enumeration<Color>
{
private Color(int value, string displayName)
: base(value, displayName)
{
}
public static readonly Color Red
= new Color(1, "Red");
public static readonly Color Blue
= new Color(2, "Blue");
}
@hazzik
Copy link

hazzik commented May 1, 2012

THIS IS JAVAAAAAAAAAAAAAAA!!!!!!!!!!!

@jbogard
Copy link
Author

jbogard commented May 1, 2012

lol yes it is, totally stolen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment