title: How to set all bits of enum flag
body: <p>I wonder a generic way for setting all bits of <code>enum</code> flag to 1.
  I just would like to have an <code>enum</code> which returns for all comparisons, regardless of other enums.</p>
  
  <p>And this code works;</p>
  
  <pre><code>[Flags]
  public enum SomeRightEnum : uint
  {
      CanDoNothing = 0,
      CanDoSomething = 1 &lt;&lt; 0,
      CanDoSomethingElse = 1 &lt;&lt; 1,
      CanDoYetAnotherThing = 1 &lt;&lt; 2,
      ...
      DoEverything = 0xFFFFFFFF 
  }
  </code></pre>
  
  <p>But at the  code above since it is uint we set the number of "F"s, it wouldn't work if it was <code>int</code>.</p>
  
  <p>So I'll appreciate a generic way of setting all bits of <code>enum</code> flag to 1, regardless of the datatype (<code>i</code>nt, <code>int64</code>, <code>uint</code> etc)</p>