Managed Execution

After you write your code, a .NET compiler compiles it into the MSIL and the component's metadata is generated. MSIL is the instruction set that .NET programs are compiled into. MSIL, which is CPU-independent, contains the instructions for loading and calling the objects' methods. Besides the instructions for loading and calling methods, MSIL also contains myriad other instructions, such as instructions for memory access, control flow, arithmetic operations, and exception handling. Cross-language integration is possible because of the combination of metadata and the common type system built into the CLR.

Part of this compilation process involves verification of the MSIL and metadata to determine whether it's truly type-safe. ...

Get Building e-Commerce Sites with the .NET Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.