R
Raymond Lewallen
I read this on this website page
http://www.vbip.com/books/1861004915/chapter_4915_06.asp:
Unlike many object-oriented languages, all methods in VB.NET are virtual.
Now in BOL, Under Perforamce Tips and Tricks in .NET Applications, A .Net
Developer Platform White Paper, at the very bottom, it says:
The JIT cannot inline virtual methods, so you lose a potential optimization
if you get rid of non-virtual methods.
So does this mean any method written in VB cannot be inlined, because they
are compiled as virtual? If so, whats the purpose of NotInheritable, or
NotOverridable?
If someone can point me to someplace that will help me on understanding this
discrepency, I would appreciate it. To this point, I've always understood
that VB.Net methods were not virtual if not declared explicitly as
Overridable, and could therefore have the possibility of being inlined.
Raymond Lewallen
Federal Aviation Administration
http://www.vbip.com/books/1861004915/chapter_4915_06.asp:
Unlike many object-oriented languages, all methods in VB.NET are virtual.
Now in BOL, Under Perforamce Tips and Tricks in .NET Applications, A .Net
Developer Platform White Paper, at the very bottom, it says:
The JIT cannot inline virtual methods, so you lose a potential optimization
if you get rid of non-virtual methods.
So does this mean any method written in VB cannot be inlined, because they
are compiled as virtual? If so, whats the purpose of NotInheritable, or
NotOverridable?
If someone can point me to someplace that will help me on understanding this
discrepency, I would appreciate it. To this point, I've always understood
that VB.Net methods were not virtual if not declared explicitly as
Overridable, and could therefore have the possibility of being inlined.
Raymond Lewallen
Federal Aviation Administration