title: Enums - All options value
body: <p>Is there a way to add an "All values" option to an enum without having to change its value every time a new value is added to the enum?</p>
  
  <pre><code>[Flags] 
  public enum SomeEnum
  {
      SomeValue =  1,
      SomeValue2 = 1 &lt;&lt; 1,
      SomeValue3 = 1 &lt;&lt; 2,
      SomeValue4 = 1 &lt;&lt; 3,
      All = ?
  }
  </code></pre>
  
  <p>Update:</p>
  
  <p>Ended up inheriting from long and using <code>long.MaxValue</code> for All option.</p>