title: Searching a enum description containing a slash
body: <p>To try make it short, I have created the following enum</p>
  
  <pre><code>public enum Frequency
  {
      [Description("Monthly")]
      Monthly,
      [Description("Quarterly")]
      Quarterly,
      [Description("N/A")]
      NA
  }
  </code></pre>
  
  <p>I then have a combo box using the same description strings.</p>
  
  <p>When I select a new selection, specifically the "N/A" one, it fails to read it correctly.</p>
  
  <p>The code that I am using to search for the right enum based on the passed in string is...</p>
  
  <pre><code>/// Returns an enum of the specified type that matches the string value passed in. Note this does ignore case
  &lt;param name="value"&gt;The string value.&lt;/param&gt;        
  public static TEnum GetEnum&lt;TEnum&gt;(string value)
  {
      if (string.IsNullOrEmpty(value))
      {
          // Default not set value name
          value = "None";
      }
       return (TEnum)System.Enum.Parse(typeof(TEnum), value.Replace(" ", string.Empty), true);
  }
  </code></pre>
  
  <p>So when the value = "N/A", I get the following error..</p>
  
  <pre><code>"An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll"
  </code></pre>
  
  <p>Additional information: Requested value 'N/A' was not found."</p>
  
  <p>I can't seem to understand why this could be happening. There is another, pre-existing combo box where the decription also contains a '/' character and the same error happens. So its not something I have done wrong, it seems, but just the behavior of the enum string checking.</p>
  
  <p>Any insight into why this is causing problems would be incredibly appreciated. :)
  Thanks!</p>
  
  <p><strong>EDIT:
  More information..</strong></p>
  
  <p>So this is the code that triggers the enum search..</p>
  
  <pre><code>if (this.FrequencyCombo.SelectedItem != null &amp;&amp; !this.FrequencyCombo.SelectedItem.Equals(Utilities.GetDescription(currentLoan.Frequency)))
          {
              currentLoan.Frequency = Utilities.GetEnum&lt;Frequency&gt;(this.FrequencyCombo.SelectedItem.ToString());
          }
  </code></pre>