What is difference between tostring() and convert.tostring() in c# [Resolved]

Posted by Jitendrasoft09 under C# on 6/26/2013 | Points: 10 | Views : 2895 | Status : [Member] [MVP] | Replies : 2
Hi All,
I want to understand What is difference between tostring() and convert.tostring() in c#, let me know if anybody knows.

Jitendra Kumar
If my post helps you, plz mark as an answer.



Responses

Posted by: Satyapriyanayak on: 6/26/2013 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved
Difference between .ToString() and Convert.ToString() in c# is that Convert.ToString() can handle null values where when using .ToString() can throw nullreference exception when trying to convert a null value.

If this post helps you mark it as answer
Thanks

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jitendrasoft09 on: 6/26/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Nicely explained with short statement, Thanks Satya....

Jitendra Kumar
If my post helps you, plz mark as an answer.

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response