What is difference between Convert.ToString(variable) and
variable.ToString()
Answer Posted / sanjib ghosh
Dim salary As Int16
Dim oldSalary As String = salary.ToString()
Dim newSalary As String = Convert.ToString(salary)
MsgBox(oldSalary & "")
MsgBox(newSalary & "")
''No exception throw
both work same function
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?
What is the difference between string and string in c#?
What do you mean by stack and heap in c#?
What are the different types of classes in c#?
Which program construct must return a value?
What is the difference between array and list in c#?
Why do we use delegates in c#?
What is the default value of string in c#?
For read-only operation which property you have to designated?
What is difference between class and interface in c#?
What does the dispose method do with the connection object?
Can you create partial delegates and enumerations?
What is serialization and deserialization in c# with example?
Can we maintain state in webservice?
What is lazy in c#?