摘要:
context可以看作是模切关注点,通过给join point(即被织入的业务)标记自定义属性(point cut,继承自ContextAttribute),可以得到context,然后advice具体的额外代码,完成aspect的过程
阅读全文
摘要:
The header just denotes what the content is encoded in. It is not necessarily possible to deduce the type of the content from the content itself, i.e.
阅读全文
摘要:
在MSDN中,Attribute被定义为“是被指定给某一声明的一则附加的声明性信息”。 我们可以通过Attribute来定义设计层面的信息以及运行时(run-time)信息,也可以利用Attribute建立自描述(self-describing)组件。通过使用Attribute,可以对元数据进行扩展
阅读全文