title: System.Environment.NewLine and \n
body: <p>Using Visual Studio 2010 and C#</p>
  
  <p>This has worked over the many years...</p>
  
  <pre><code> string myString= txtSomeMultiLineTextBox.Text;
   string str = myString.Replace(System.Environment.Newline, "&lt;br /&gt;");
  </code></pre>
  
  <p>When setting a breakpoint, if myString = LineOne\nLineTwo\nLineThree<br>
  The \n is NOT replaced... <br>
  Then str = myString <br>
  There is no replace.<br>
  myString remains the same<br></p>
  
  <p><br>
  I have researched everywhere about Environment.Newline and the differences with operating environments and the one I work with is Windows 7.
  <br>
  This Environment will not change.
  <br>
  Why is Environment.Newline not reading \n ?</p>
  
  <p>Thanks,</p>