title: Enum with decimal values or some like this
body: <p>Basically I want to define an enum with decimal values but this is not possible. An alternative is:</p>
  
  <pre><code>public static class EstadoRestriccion
  {
      public const decimal Valur1 = 0;
      public const decimal Value2 = 0.5M;
      public const decimal Value3 = 1;
  };
  </code></pre>
  
  <p>But I need add these constants in a combobox where the options to display should be the name of constants and <code>SelectedItem</code> should return the value (0, 0.5M, 1) or some like these. I know that it is possible but it is ugly.</p>
  
  <p>With an enum I can do this easly: <code>comboBox.DataSource = Enum.GetValues(typeof(MyEnum));</code></p>
  
  <p>What is the best way to simulate an enum with my requirements?</p>