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 are extender provider components?
What are custom exceptions in C#?
what is boxing and unboxing?can we initialize unboxing directly?
What is the use of properties window?
What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default
Why delegates are required?
What is the use of inheritance in c#?
hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......
What is void in c#?
What does assert() do in c#?
List some of the basic string operation?
Give examples for reference types?
What is the interface in c#?
What is the use of tryparse in c#?
What is a property c#?