title: XML deserialization 'standardising' line endings, how to stop it? (.NET)
body: <p>I have a class with a property marked with <code>[XmlText]</code>, that accepts multiline input. In my XML file, I've verified that the line endings inside the text content are infact <code>"\r\n"</code>, the same as the rest of the file.</p>
  
  <p>The code I'm using to deserialize is:</p>
  
  <pre><code>XmlSerializer configSerializer = new XmlSerializer(typeof(WorldList));
  string file = "test.xml";
  
  if (File.Exists(file))
  {
      using (TextReader r = new StreamReader(file))
      {
          foo = configSerializer.Deserialize(r);
      }
  }
  </code></pre>
  
  <p>But, inside the setter for the <code>[XmlText]</code> property, <code>value</code> already has <code>"\n"</code> as a line ending. The main reason this is annoying is because <code>"\n"</code> line endings don't display properly in a <code>TextBox</code>... I'm not exactly sure which part is causing the problems, but I thought someone here might be able to shed some light on the situation.</p>