Difference between Convert.ToString() and .ToString()?

Convert.ToString() handles null while ToString() doesn't.

Convert.ToString() handles null, while ToString() doesn't.

Good.. For this specific reason only they using. Two methods? – Ayyappan.

Anbalagan May 13 '10 at 15:48 Also, semi-related, see this answer for more detail: stackoverflow. Com/questions/496096/… – JYelton May 13 '10 at 15:50.

Calling ToString() on an object presumes that the object is not null (since an object needs to exist to call an instance method on it). Convert. ToString(obj) doesn't need to presume the object is not null (as it is a static method on the Convert class), but instead will return String.

Empty if it is null.

In Convert.ToString(), the Convert handles either a NULL value or not but in .ToString() it does not handles a NULL value and a NULL reference exception error. So it is in good practice to use Convert.ToString().

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions