What are the best resources for learning CIL (MSIL)

后端 未结 5 1500
轮回少年
轮回少年 2021-02-01 06:05

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 be

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-01 07:02

    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.

提交回复
热议问题