Sandeep Kumar

Sandeep Kumar

  • 372
  • 4.4k
  • 1.1m

difference between Console.WriteLine(s.ToString()) & .......

Mar 1 2018 2:59 AM
Here s is a string value  s ,which is containng null.So Can anyone tell what is difference between Statement 1 & Statement 2
 
 
string s;
s=" ";
Console.WriteLine(s.ToString());
Console.WriteLine(Convert.ToString(s)); 

Answers (3)