title: Interpolating special characters (\t, \n, \r etc.) at runtime in C#
body: <p>The C# compiler interpolates special character literals like \t for tab, \n for newline etc. But is there a built-in C# or .Net function that can interpolate them at runtime?</p>
  
  <p>For example, at runtime I read a configuration for a text-delimited file format, maybe something like this:</p>
  
  <pre><code>Delimiter: \t
  LineEnding: \r\n
  </code></pre>
  
  <p>Right now the only thing I can think of doing is reading in the string and then performing a Replace() with compiler-interpolated strings:</p>
  
  <pre><code>Delimiter = Delimiter.Replace(@"\n", "\n").Replace(@"\r", "\r");
  </code></pre>