Hello friends,
i have been asked one question in interview is convert.tostring() vs tostring() whicn one faster?
please give me answer as soon as possible.
thanks in advance..
chirag
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ArshadPosted Aug 27, 2010, 12:52 PM
Both does convert the object into the string. the difference between these two is
when you are trying to convert the Null object with ToString(), it will give you the run time error. but Convert.ToString() will not cause any run time error.
Regards,
Arshad