Traverse a c# method and anazlye the method body

后端 未结 1 678
庸人自扰
庸人自扰 2021-01-18 01:05

Whats the easiest way to traverse a methodinfo in c#?

I want to traverse the method body and find field-references and such and retrieves the types.

In Syste

相关标签:
1条回答
  • 2021-01-18 01:26

    This thing should help: Reflection based CIL reader. It operates on byte array obtained by calling GetILAsByteArray()

    0 讨论(0)
提交回复
热议问题