What is the difference between .tostring(), Convert.tostring()?

Total Post:782

Points:3910
C#  .NET  String 
C#
 1732  View(s)
Ratings:
Rate this:
  1. Post:782

    Points:3910
    What is the difference between .tostring(), Convert.tostring()?

    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.

Answer