title: Enum with flag and Bitwise operation
body: <p>I have a senario and I am using following enum for the same </p>
  
  <pre><code>[Flags]
  enum State
  {
      None = 0x00,
      Added = 0x01,
      Edited = 0x02,
      Commented = 0x04,
      Uncommented = 0x8,
      Reordered = 0x16
  }
  </code></pre>
  
  <p>I wanted to get result like this </p>
  
  <p>if Added  result will be</p>
  
  <blockquote>
    <p>Added</p>
  </blockquote>
  
  <p>if then Edited result will be</p>
  
  <blockquote>
    <p>Added, Edited</p>
  </blockquote>
  
  <p>if then Reordered will be</p>
  
  <blockquote>
    <p>Added, Edited, Reordered </p>
  </blockquote>
  
  <p>if then Commented will be</p>
  
  <blockquote>
    <p>Added, Edited, Reordered, Commented  </p>
  </blockquote>
  
  <p>if then Uncommented will be</p>
  
  <blockquote>
    <p>Added, Edited, Reordered, Commented , Uncommented </p>
  </blockquote>
  
  <p>if then Commented will be</p>
  
  <blockquote>
    <p>Added, Edited, Reordered, Commented , Uncommented , Commented </p>
  </blockquote>
  
  <p>and so on. </p>
  
  <p>Please advice whether I can do the same using any <code>Bitwise</code> operation.  </p>