Skip to content

Instantly share code, notes, and snippets.

@plioi
Created November 18, 2011 03:12
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 plioi/1375478 to your computer and use it in GitHub Desktop.
Save plioi/1375478 to your computer and use it in GitHub Desktop.
//When you write:
public enum Role
{
System,
Manager,
Employee,
HumanResources
}
//...the compiler assumes you wrote:
public enum Role : int
{
System = 0,
Manager = 1,
Employee = 2,
HumanResources = 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment