摘要: 元数据是关于数据的数据。在编程语言上下文中,元数据是添加到程序元素如方法、字段、类和包上的额外信息。什么是元编程?运行时动态创建类型的功能称为元编程。 从学习UML就知道meta-的重要性了,再后来了解到MOF(MetaObjectFacility)就更加着迷这个Meta-。Meta- 在...之中... 对于想真正了解一个Framework,了解它的Meta东西是十分重要的。不管任何一个Framework,肯定存在着它自己的MetaData的,. NET作为一个Framework自然也存在好多元数据,我们编写应用程序中如果可以灵活的运用元编程技术,肯定可以使我们的程序更加灵活,高效甚至自我 阅读全文
posted @ 2011-11-21 18:58 Ready! 阅读(336) 评论(0) 推荐(0) 编辑
摘要: There are two ways:.Directly call a function exported from a DLL..Call an interface method on a COM object.For both techniques, you must provide the C# compiler with a declaration of the unmanaged function, and you may also need to provide the C# compiler with a description of how to marshal the par 阅读全文
posted @ 2011-11-21 18:09 Ready! 阅读(170) 评论(0) 推荐(0) 编辑
摘要: In a nutshell, 3 ways:newproxy class (it could be used to implement AOP, .Net Remoting, WebService...facilities)ILGenerator.Emit (it could be used to implement AOP,code injection ...facilities) 阅读全文
posted @ 2011-11-21 18:02 Ready! 阅读(228) 评论(0) 推荐(0) 编辑