title: Compare strings in C# from different OSs with different escape characters
body: <p>I am trying to compare to strings in C#. So far so good. The challenge is that these strings have different escape characters as they are from different systems. String "b" is displayed in a Windows Forms element whereas string "a" is read from a webapplication. The "equals"-method tells the strings are different. 
  But as the strings are the same but the new line, I wonder if there is a possibility to compare these strings no matter how new lines are encoded.</p>
  
  <pre><code>string a = "My cool string\r\nwith two lines";
  string b = "My cool string\nwith two lines";
  
  if (a.Equals(b)){
      Debug.WriteLine("Strings match");
  }else{
      Debug.WriteLine("Strings do not match");
  }
  </code></pre>
  
  <p>Can you help me with the comparison?</p>