title: Why is my Dictionary adding extra escape characters to a string?
body: <p>App.config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;appSettings&gt;
      &lt;add key="1" value="An error occured.\r\nPlease try again later." /&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>Dictionary&lt;string, string&gt; keyValuePairs = new Dictionary&lt;string, string&gt;();
  string key = "1";
  
  keyValuePairs.Add(key, ConfigurationManager.AppSettings["key"]);
  
  if (keyValuePairs.ContainsKey(key))
  {
    // when I hover over the object, keyValuePairs, in my debugger, I see, "An error occured.\r\nPlease try again later."
    string value1 = keyValuePairs[key];
    // now when I hover over the local variable, value, I see, "An error occured.\\r\\nPlease try again later."
  }
  </code></pre>
  
  <p><strong>I'm curious as to why the above code adds escape characters to "\r\n" to make it "\r\n"</strong></p>
  
  <p><strong><em>I'd also like to know how to avoid getting the extra "\" characters.</em></strong></p>