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
How to override a function in c#?
How do generics work in c#?
What is verbatim string literal in c#?
Why is aws serverless?
What is an indexer in c#?
What is the usage of OLE?
Tell me the difference between value passing and address passing?
How do I unload an application domain?
What's c# ?
What is type cast in C#?
What is new method in c#?
What are get and set in c#?
What is the difference between CreateObject() and GetObject()?
In c#, what will happen if you do not explicitly provide a constructor for a class?
What are reflections in c#?