Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CType() in VB.NET
Message
 
To
11/05/2005 21:57:10
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01013227
Message ID:
01013260
Views:
10
Bonnie,
Thanks for your reply. I have been reading a lot of VB.NET code lately, mostly to learn more about VB.NET (even if C# is my language of choice). I found this little piece of information in the M$ docs about CType() kind of odd:
CType is compiled inline, meaning the conversion code is part of the code that evaluates the expression.
Execution is faster because there is no call to a procedure to accomplish the conversion.
Execution is faster compared to what? CType() is explicitly converting an object to another object, is casting in C# (also explicitly converting) slower than CType() in VB.NET?



Einar

>Yep, that's the correct conversion.
>
>~~Bonnie
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform