Unlimited Technique          Unlimited Wisdom

1001010000101001000010010001000010000101101110111 1101010010010101011110010101110101011010101010101

导航

随笔分类 -  Refection Technology

some essays about refection technology
Future.AOP 一个基于Dynamic Proxy的AOP framework
摘要:我设计的一个AOP framework for .net – Future.AOP,它的原理是基于Dynamic Proxy和Reflection Emit API技术,采用C#编写,现在已经完成一个最初的0.1版本,请大家测试。 具体说明,请看http://bughole.cnblogs.com/articles/202012.htmlDemo请在http://www.cnblogs... 阅读全文

posted @ 2005-07-28 15:31 bughole 阅读(746) 评论(0) 推荐(0)

How to convert a type specified to a object type in IL.
摘要:There are two kinds of type in the IL: value type and non-value type. It can bejudged from the IsValueType property of a object type. e.g. typeof(String).IsValueType.ValueType includes Int(16, 32, 63)... 阅读全文

posted @ 2005-07-18 11:29 bughole 阅读(281) 评论(0) 推荐(0)

How to deal with the ‘void’ in IL
摘要:If there is a method returning a object type, it invokes a method returning null. Then the ‘ldnull’ instruction should be added after the invoking instruction.The description is demonstrat... 阅读全文

posted @ 2005-07-18 09:55 bughole 阅读(243) 评论(0) 推荐(0)

Define the constructor of the class through the TypeBuilder
摘要:In TypeBuilder you can use two method to define the constructor of the Type(class): DefineDefaultConstructor and DefineConstructor . DefineDefaultConstructor generates a default constructor. Th... 阅读全文

posted @ 2005-07-13 13:44 bughole 阅读(264) 评论(0) 推荐(0)

Assembly and Module
摘要:在C#中生成Dynamic Module用m_Assembly.DefineDynamicModule("Module", " Dynamic.dll ");生成Assembly用m_Assembly.Save("Assembly.dll");在使用save方法后,将同时在currentdirectory生成两个文件,Dynamic.dll和Assembly.dll只有调用Save方法,Dynam... 阅读全文

posted @ 2005-07-13 10:47 bughole 阅读(317) 评论(0) 推荐(0)