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

What is an enumerator c#?

495


what is object-oriented programming (oop) language?

466


Explain about Serialize and MarshalByRef?

532


What are immutable types in c#?

465


What is local function?

494






How do I create a single-file assembly?

462


What is difference between for and foreach in c#?

445


What is interface used in c#?

561


What is console writeline in c#?

448


What is the reason behind the invention of c#?

606


What are constructors in c#?

509


What is the components of window?

481


What is delegation in oops?

494


Why dataset is used in c#?

492


What is the difference between field and variable in c#?

436