Created
May 1, 2012 12:41
-
-
Save jbogard/2567716 to your computer and use it in GitHub Desktop.
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 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"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment