...
首页> 外文期刊>MSDN Magazine >Rewrite MSIL Code On the Fly with the .NET Framework Profiling API
【24h】

Rewrite MSIL Code On the Fly with the .NET Framework Profiling API

机译:使用.NET Framework Profiling API快速重写MSIL代码

获取原文
获取原文并翻译 | 示例
           

摘要

In this article, the author shows how to dynamically rewrite Microsoft Intermediate Language code on the fly using the Profiling API of the CLR. Unlike approaches based on Reflectlon.Emit, this scheme works with the existing assemblies and doesn't require the creation of proxy or dynamic assemblies. The needs for IL code rewriting emerges when you want to make your changes transparent to the client and preserve the identity of classes. This technique can be used for creation of interceptors, pre- and post-processing method calls, and code instrumentation and verification.
机译:在本文中,作者展示了如何使用CLR的分析API动态地重写Microsoft中间语言代码。与基于Reflectlon.Emit的方法不同,此方案可与现有程序集一起使用,并且不需要创建代理或动态程序集。当您想使更改对客户端透明并保留类的标识时,就会出现IL代码重写的需求。此技术可用于创建拦截器,预处理和后处理方法调用以及代码检测和验证。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号