Question about String.Equals()
Why the following code(#1) returns false but code (#2) returns true.
(#1)
string temp = sbTemp.ToString();
return temp.Equals(expectedOutputStream.ReadToEnd());
(#2)
string temp = sbTemp.ToString();
string expectedOutput = expectedOutputStream.ReadToEnd();
return temp.Equals(expectedOutput);