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 lazy thread safe c#?
How to reduce image resolution in C#?
What is system console writeline in c#?
What is an enumerator in c#?
What is the difference between system.string and system.text.stringbuilder classes?
What is dynamic dispatch?
What is a generic c#?
what is the Difference between the public and private ?
Is there regular expression (regex) support available to c# developers?
What is dynamic in c#?
What is difference between ienumerable and iqueryable in c#?
How many bytes is an int?
How long can a string be c#?
What is dto c#?
The int maps to which C# keyword in .NET type?