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

Posted on    November-20-2014 11:18 PM

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

Sumit Kesarwani

Total Post:782

Points:3910
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