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
Is javascript harder than c#?
How do I link two windows forms in c#?
Explain the difference between the system.array.copyto() and system.array.clone()?
Can constructor be overloaded in c#?
Does the system.exception class have any cool features?
Can a method return multiple values in c#?
Is int a struct in c#?
What is the delegate in c#?
Define parsing?
What is the difference between delegates and events in c#?
What is the difference between select and selectmany?
What are most desktop applications written in?
Is c# still popular?
How you will create satellite assemblies?
Can an exception be thrown from a catch block?