What is difference between Convert.ToString(variable) and
variable.ToString()

Answer Posted / hima sijo

convert.tostring handles Null value also where
Variable.tostring wont handle null value.It throw exception

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Constructor to an arbitrary base constructor?

734


What are Indexers in C#?

755


Is string nullable in c#?

657


What is a event in c#?

608


What is the use of delegates in c#?

638


Who introduced c#?

650


What is scaffolding in c#?

675


Why abstract class is not instantiated in c#?

691


How many bits is int32?

690


Do events have return type c#?

691


Does c# have functions?

656


What is the difference between dll and lib?

688


Should I make my destructor virtual?

786


What is trim in c#?

740


What is desktop application testing?

666