CLR Method Internals (.NET 2.0)
Method calls are the bread and butter of C# and VB programming, but a lot of moving pieces go into making that all work.
Method calls are the bread and butter of C# and VB programming, but a lot of moving pieces go into making that all work.
Managed C++, C#, VB .NET, and other .NET programming languages are compiled to IL code (or MSIL). Learning MSIL gives you the chance to understand some things that are generally hidden. While you never need to write programs in MSIL directly, in some difficult cases it is very useful to open the MSIL code and see how things are done.
The Common Language Specification defines the minimum things that a language must support to be .NET compliant. There are optional features too. One such optional feature involves events.
Does a simple C++ application compile to the same IL as the equivalent VB or C# application? Let's see.