Difference between Convert.ToString() and .ToString() method in C#.


Convert.ToString() method can handle null value and will not throw exception.
Example:

string FirstName = null; 
Console.Write(Convert.ToString(FirstName));


.ToString() method will throw exception (Object reference not set to an instance of an object.) while converting null value to string.

Example:

string FirstName = null;          
Console.Write(FirstName.ToString());
Console.ReadKey();


Exception : Object reference not set to an instance of an object.