What is difference between Convert.ToString(variable) and
variable.ToString()
Answer Posted / pavel
object ss =null;
string s1 = ss.ToString(); ---------- exeption
string s2 = Convert.ToString(ss); --- ""
--------------------
int ss =null; --- int can't be converted to null
--------------------
int ss = 1;
string s1 = ss.ToString(); ---------- "1"
string s2 = Convert.ToString(ss); --- "1"
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
If a method's return type is void, can you use a return keyword in the method?
What are reflections in c#?
What do you mean by jagged array?
What is native image generator (ngen.exe)?
Explain the different ways a method can be overloaded?
What is a int in c#?
Can arraylist hold primitive types?
What is difference between il and dll ?
What is mvc in c#?
Define boxing and unboxing in c#?
Is there regular expression (regex) support available to c# developers?
What is difference between method overriding and method overloading?
What are Types of assemblies that can be created in dotnet
Does c# support properties of array types?
Define the term immutable ?