[转载]Modifying IL at runtime
摘要:
If you remember the Omniscient Debugger, it was a Java debugger that instrumented the bytecode at runtime to trace calls and monitor variables. It did so by using a custom ClassLoader.
Unfortunately the .NET classes that seemed somewhat equivalent to the Java ClassLoader are sealed, so they can't be extended. So, for a while I thought runtime instrumentation of the code wasn't possible in .NET...
A couple weeks later, I stumbled onto the NProf (open-source .NET profiler) project and 阅读全文
posted @ 2007-07-26 11:45 紫雨轩 .Net 阅读(987) 评论(5) 推荐(0) 编辑