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
What is difference between .net and c#?
Are all methods virtual in c#?
What is cshtml extension?
Is null in c#?
What is yield return in c#?
What is use of abstract class in c#?
How do I convert a string to an int in c#?
What do u mean by delegation of authority?
How are delegates chosen?
What is the use of ispostback in c#?
What is the usage of OLE?
What is the difference between first and firstordefault?
What is the purpose of c#?
How long does a loop recorder procedure take?
Is null or empty in c#?