Convert.ToString handles null and not throws ObjectReferenceNullException. ToString does not handles the null value and throws the null exception error message.
Here’s an example
C#
public String FullName = null;
protected void Page_Load(object sender, EventArgs e)
{
try
{
Response.Write("<b>.ToString</b><br>");
Response.Write("FullName :" + FullName.ToString());
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
Response.Write("<br><br>");
try
{
Response.Write("<b>Convert.ToString</b><br>");
Response.Write("FullName :" + Convert.ToString(FullName));
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}
VB.NET
Public FullName As [String] = Nothing
Protected Sub Page_Load(sender As Object, e As EventArgs)
Try
Response.Write("<b>.ToString</b><br>")
Response.Write("FullName :" + FullName.ToString())
Catch ex As Exception
Response.Write(ex.Message)
End Try
Response.Write("<br><br>")
Try
Response.Write("<b>Convert.ToString</b><br>")
Response.Write("FullName :" + Convert.ToString(FullName))
Catch ex As Exception
Response.Write(ex.Message)
End Try
End Sub
Output

Download
Convert.ToString VS .ToString.rar (747.00 bytes)
See live demo