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 the .net datatype that allows the retrieval of data by a unique key?
What can we do to handle multiple exceptions?
Give examples for value types?
What is yield keyword?
I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??
Why do we need indexer in c#?
What is difference between events and delegates?
What is uint64_t?
Why do we need a singleton class?
Explain about Serialize and MarshalByRef?
What are the different approaches of passing parameters to a method?
What is remote data?
What is wpf application in c#?
Why do we need serialization?
What is executescalar in c#?