The basic difference between them is “
Convert.ToString(variable)
” handles NULL values even if variable value become null but “
variable.ToString()
” will not handle NULL values it will throw a NULL reference exception error. So as a good coding practice using “convert” is always safe.
see more...[
^]
So it's better that you should use
.ToString()
to check
NULL
values.
-KR