title: enum set to string and get sting value when need
body: <p>I don't know how to do this<br />I want code like following</p>
  
  <pre><code>enum myenum
  {
      name1 = "abc",
      name2 = "xyz"
  }
  </code></pre>
  
  <p>and check it</p>
  
  <pre><code>if (myenum.name1 == variable)
  </code></pre>
  
  <p>how can I do those things?</p>
  
  <p>thanx.</p>