摘要:我设计的一个AOP framework for .net – Future.AOP,它的原理是基于Dynamic Proxy和Reflection Emit API技术,采用C#编写,现在已经完成一个最初的0.1版本,请大家测试。 具体说明,请看http://bughole.cnblogs.com/articles/202012.htmlDemo请在http://www.cnblogs...
阅读全文
摘要: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)...
阅读全文
摘要: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...
阅读全文
摘要:In TypeBuilder you can use two method to define the constructor of the Type(class): DefineDefaultConstructor and DefineConstructor . DefineDefaultConstructor generates a default constructor. Th...
阅读全文
摘要:在C#中生成Dynamic Module用m_Assembly.DefineDynamicModule("Module", " Dynamic.dll ");生成Assembly用m_Assembly.Save("Assembly.dll");在使用save方法后,将同时在currentdirectory生成两个文件,Dynamic.dll和Assembly.dll只有调用Save方法,Dynam...
阅读全文