title: c# enum constants map to unique integer values
body: <p>is there any way in c# to ensure enum constants map to unique integer values.</p>
  
  <pre><code>public enum Color
  {
  None =0,
  red = 1,
  blue= 2,
  white = 3
  }
  </code></pre>
  
  <p>Here  if i do change numeric value of "white from 3 to 2" i should get the compilation error.</p>
  
  <p>In my project i'm saving the enum integer value in DB respect to constant.
  i need a constraint in enum like if someone add a new constant in enum( e.g black). user must provide the unique numeric value with enum constant.</p>
  
  <p>thanks</p>