When to use .toString() and Convert.ToString()?

 Posted by Kmandapalli on 1/20/2014 | Category: ASP.NET Interview questions | Views: 2936 | Points: 40
Answer:

The difference is that when we .toString, it will not handle nulls and hence throws an NULL reference exception error.
Whereas the Convert.ToString() handles the nulls.
Hence it is always better to use Convert.ToString().


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response