Skip to content

Instantly share code, notes, and snippets.

@cbcwebdev
Created May 30, 2012 20:11
Show Gist options
  • Save cbcwebdev/2838634 to your computer and use it in GitHub Desktop.
Save cbcwebdev/2838634 to your computer and use it in GitHub Desktop.
public class Directory
{
// ... fields omitted for brevity
public DirectoryType Type { get; private set; }
}
// use attributes to add metadata to any given enum value
public enum DirectoryType
{
Country = 1,
State = 2,
MajorMetroArea = 3,
Region = 4,
County = 5,
City = 6,
Simple = 7 // no longer used in the system
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment