D
Daniel Walzenbach
Hi,
I wonder if somebody could explain me the difference between Double.Parse and Convert.ToDouble. If I'm not mistaken they are implemented differently (I though for a moment they might be the same like cint(anInt) and cType(anInt, System.Int32) but I checked with ildasm) - if I didn't made a mistake.
So when to use which syntax? Is there any performance penalty when using the one over the other or does anybody knows any differences?
' Example code **********************************
Dim myDouble As System.Double
Dim myString As System.String = "10"
myDouble = System.Double.Parse(myString)
myDouble = Convert.ToDouble(myString)
Thank you in advance!
--
Best regards
Daniel Walzenbach
P.S. If you need to contact me simply remove ".NOSPAM" from my email address.
I wonder if somebody could explain me the difference between Double.Parse and Convert.ToDouble. If I'm not mistaken they are implemented differently (I though for a moment they might be the same like cint(anInt) and cType(anInt, System.Int32) but I checked with ildasm) - if I didn't made a mistake.
So when to use which syntax? Is there any performance penalty when using the one over the other or does anybody knows any differences?
' Example code **********************************
Dim myDouble As System.Double
Dim myString As System.String = "10"
myDouble = System.Double.Parse(myString)
myDouble = Convert.ToDouble(myString)
Thank you in advance!
--
Best regards
Daniel Walzenbach
P.S. If you need to contact me simply remove ".NOSPAM" from my email address.