Create a gist now

Instantly share code, notes, and snippets.

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");

lol yes it is, totally stolen!

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