title: Converting from String to Enum in C
body: <p>Is there a convienent way to take a string (input by user) and convert it to an Enumeration value?  In this case, the string would be the name of the enumeration value, like so:</p>
  
  <pre><code>enum Day
  {
      Sunday = 0,
      Monday = 1,
      ...
  }
  </code></pre>
  
  <p>So that if the user gave the name of a Day, it would be able to parse that to the corresponding Enum value.</p>
  
  <p>The trick is, I have over 500 values I'm working with, and they are spread out across multiple enumerations.  </p>
  
  <p>I know of the Enum.Parse Method in c#, so is there some form of this in c?</p>