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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.