title: Trying to Replace ' with literal C#
body: <p>I have a Little Problem here. Im trying to replace the Character ' with \'</p>
  
  <p>I tried string replace method in the following ways:</p>
  
  <p>1.</p>
  
  <pre><code>string test = "HISTOIRE D'O, CHAPITRE II";
  test = test.Replace("'","\'");
  </code></pre>
  
  <p>Nothing Changed in the String test is the same as declared</p>
  
  <p>2.</p>
  
  <pre><code>string test = "HISTOIRE D'O, CHAPITRE II";
  test = test.Replace("'","\\'");
  </code></pre>
  
  <p>This Formats my string like this "HISTOIRE D\\'O, CHAPITRE II";</p>
  
  <p>Found nothing yet on Google etc.</p>
  
  <p>Thanks for every help.</p>