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
Is Multiple-inheritance supported by c#?
Why static variables are used?
What is nameof c#?
What is asp net c#?
What are accessors?
What are the different types of classes in c#?
Explain About .Net remoting
What is the difference between first and firstordefault?
What is the signature of a method?
What is type cast in C#?
How does aspect oriented programming work?
What is lazy keyword in c#?
Can class inherit from struct c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What is overriding in c#?