Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我正在查看 PostSharp,我注意到这没有使用运行时生成的代理,但它实际上为编译过程提供了提示,以将这些方面包含在 IL 中。
所以我最初的想法是哇,这到底是怎么做到的。我应该在哪里寻找任何指示?
你可以看看源代码。或者谷歌“IL重写”,这是一种常用的技术。