Home > DeveloperSection > Interviews > What is the difference between .tostring(), Convert.tostring()?

Posted on    November-20-2014 11:18 PM

 C# C#  .NET  String 
 1 Answer(s)
  1363  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Posted on    November-21-2014 12:18 AM

The basic difference between them is “Convert” function handles NULLS while

“.ToString()” does not it will throw a NULL reference exception error. So as a good coding

practice using “convert” is always safe.

Don't want to miss updates? Please click the below button!

Follow MindStick