Emitting IL Code at Runtime
You have more than likely heard that Visual Basic .NET, and in fact all .NET code, is emitted to an Intermediate Language (IL) form when you compile an application. The IL code is actually just-in-time compiled (JITted) before it is actually executed. This follows the Java model of byte code. The foundation for doing this is probably similar to the reasons that Sun implemented Java that way: someone envisions porting .NET to non-Windows machines. It makes sense and is a good idea.
Imagine, some vendor will port VB .NET to the Mac, Linux, and UNIX. Now smart VB .NET programmers everywhere can work on software for any company, anywhere. If you want to see some IL code, run the ildasm.exe (IL disassembler) utility in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access