什么是学习CIL最好的资源(MSIL)最好的、资源、CIL、MSIL

2023-09-03 09:00:41 作者:思君朝与暮

我是专家C#3 / .NET 3.5程序员希望开始做使用System.Reflection.Emit.DynamicMethod一些运行时的codeGEN。我很乐意起来,成为非常熟悉IL移动到一个新的水平。

I'm an expert C# 3 / .NET 3.5 programmer looking to start doing some runtime codegen using System.Reflection.Emit.DynamicMethod. I'd love to move up to the next level by becoming intimately familiar with IL.

任何指针(双关语意)?

Any pointers (pun intended)?

推荐答案

要学习它的最好办法,就是给你写明白了点什么,然后看它创造了IL。此外,根据你在做什么,你可以使用EX pression树,而不是发射IL,然后当你编译EX pression树,那些聪明的家伙在微软创建IL为雅。

The best way to learn it, is to write something you understand, then look at the IL it created. Also, depending on what you are doing, you can use expression trees instead of emitting IL, and then when you compile the expression trees, those smart guys at microsoft create the IL for ya.

 
精彩推荐