Hello freinds,
Recently i was interviewes in accenture and i was asked what the difference between tostring and convertostring. I think tostring checks for spaces and convertostring does not

Its not spaces its nulls.
convert.tostring handles nulls while simple tostring() function does not handle null.

Are you sure about it khadak...

Nice video to the point thanks a lot.

Tostring:-
Its not handle the null values.Its throwing error.
Convert to string:-
Its handle null value also.Its not throwing an error.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.