title: C# Enum Flags - roles edit, view, admin
body: <p>I define my roles like this:</p>
  
  <pre><code>[Flags]
  public enum Roles : byte
  {        
      View = 1,       
      Edit = 2,    
      Admin = (View | Edit)
  }
  </code></pre>
  
  <ul>
  <li>View role, can view only</li>
  <li>Edit can view and edit only</li>
  <li>Admin can do Admin stuff, edit and view</li>
  </ul>
  
  <p>Am I doing something wrong in defining my Enum?</p>