title: Determine if string is newline in C#
body: <p>I am somehow unable to determine whether a string is newline or not. The string which I use is read from a file written by Ultraedit using DOS Terminators CR/LF. I assume this would equate to "\r\n" or Environment.NewLine in C#. However , when I perform a comparison like this it always seem to return false : </p>
  
  <pre><code>if(str==Environment.NewLine)
  </code></pre>
  
  <p>Anyone with a clue on what's going on here?</p>