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.
Example
Convert.ToString():
- string str=null;
- Console.WriteLine(Convert.ToString(str));
Above line will run successfuly,without throwung any error.
.ToString():
- string str=null;
- Console.WriteLine(str.ToString());
Above line will throw "NullReferenceException".