In this programming tutorial we will learn the difference between .ToString() and Convert.ToString() in asp.net. It is most commonly asked question in interview for a web developer post.
The only basic difference between them is Convert.ToString() function handles null while
.ToString() does not handle null, in fact .ToString() will throw a NULL reference exception error. So for good coding practice always use Convert.ToString().
So that's it. I hope you will find this tutorial very handy.
I love your feedback.
So that's it. I hope you will find this tutorial very handy.
I love your feedback.
0 comments:
Post a Comment