Sandeep Kumar

Sandeep Kumar

  • 435
  • 4.3k
  • 551.8k

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)