title: Getting the integer value from enum
body: <p>I am working on a basic <a href="http://en.wikipedia.org/wiki/Battleship_%28game%29" rel="noreferrer">Battleship game</a> to help my C# skills.  Right now I am having a little trouble with enum. I have:</p>
  
  <pre><code>enum game : int
  {
      a=1,
      b=2,
      c=3,
  }
  </code></pre>
  
  <p>I would like the player to pass the input "C" and some code return the integer <code>3</code>.  How would I set it up for it to take a string var (<code>string pick;</code>) and convert it to the correct int using this enum? The book I am reading on this is bit confusing</p>