title: How to restrict a variable to a fixed set of strings?
body: <p>If I want to restrict the values of the spicelevel column in the database to 1, 2 and 3, I could do something like</p>
  
  <pre><code>    private enum SpiceLevel
      {
          Low=1,
          Medium=2,
          Hot=3
      }
  </code></pre>
  
  <p>Then in the code I could do <code>(int)SpiceLevel.Low</code> to pick 1 as the spice level.</p>
  
  <p>Now what if I have a need where I can only accept "Red Rose","White Rose" and "Black Rose" for the values of a column in the database? What is a graceful way to handle this?</p>
  
  <p>I am thinking of storing them in a config file or constants, but neither is as graceful as enums. Any ideas?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>The answer <a href="https://stackoverflow.com/questions/630803/associating-enums-with-strings-in-c-sharp">here</a> worked for me</p>