公告
财富商城
积分规则
提问
发文
2019-04-05 18:28发布
姐就是有狂的资本
Is it possible to find out anything about a Method body with reflection?
How?
Talking of Mono.Cecil, it will give you access to the method body in a way that will look very familiar if you have ever peeked into a .NET assembly with ILDASM.
You can use MethodInfo.GetMethodBody.
MethodInfo.GetMethodBody
That provides you access to anything you want... if you're happy to work through the IL etc yourself.
It's possible that the Mono Cecil library will provide more help - I haven't used it myself.
最多设置5个标签!
Talking of Mono.Cecil, it will give you access to the method body in a way that will look very familiar if you have ever peeked into a .NET assembly with ILDASM.
You can use
MethodInfo.GetMethodBody
.That provides you access to anything you want... if you're happy to work through the IL etc yourself.
It's possible that the Mono Cecil library will provide more help - I haven't used it myself.