I read that creating a class sealedin C # is recommended in high-performance scripts, because it frees the compiler to perform certain optimizations (for example, nesting property attributes) that it cannot do otherwise. NotInheritableIs the same true for in VB.NET? My guess would be yes, but I am posting this question in case someone else has researched and finds out the answer.
sealed
NotInheritable
Yes, the generated IL for sealedin C # is identical NotInheritablein VB.NET, and these potential optimizations will be performed by the JIT compiler, which will occur regardless of the source language.