Interpretation: IL, with MSIL (Microsoft intermediate Language), is to be. NET code into an intermediate language of machine language, so the Il language is called pseudo-assembly language. Use. NET Framework provides a compiler that can directly compile the source program into an. exe or. dll file, or run IL code on the. NET Platform, C # Implementing IL can refer to the type provided under the System.Reflection.Emit namespace, and the instruction set can refer to System.Reflection.Emit.OpCodes. IL Advantages: The advantage of using the intermediate language has two points, one is to achieve platform-independent, not specific to the CPU, and the second is to improve the flexibility, for example, the parameter A through an implementation of the result B, and its implementation is based on a value T of parameter A, and T is the value of 100, 1000 kinds, not even certain. It is very complex to judge directly using the IF statement, and it is much simpler to make a dynamic or dynamic delegate using the Dynamicmehtod under the System.Reflection.Emit namespace, and the efficiency is much higher than using. NET Reflection.
MSIL (IL) Encyclopedia