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
Define an abstract class?
Explain about finalize method?
Is string value type c#?
Can a struct be null?
In .Net, what is an assembly? Also explain the type of assembly.
what is c# command?
How do you achieve polymorphism in c#?
Is as keyword in c#?
What is the difference between class and namespace?
What is a web service in c#?
What do you mean by generic class in c#?
Can properties be private in c#?
Illustrate serialization?
What are the desktop applications?
Is hashset serializable c#?