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));
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mukesh NayakRank #1,172 · 1.5K reputationPosted Feb 28, 2018, 10:04 PM EST
Cynthia SathuragiriRank #937 · 2.2K reputationPosted Feb 28, 2018, 10:07 PM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Mar 1, 2018, 12:59 AM EST