Friday 3 February 2012

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


What is the difference between .tostring(), Convert.tostring()?
Ans: 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.

No comments:

Post a Comment