在C#中面向方面编程 [英] Aspect Oriented Programming in C#

查看:155
本文介绍了在C#中面向方面编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有良好的资源,以环绕面向方面的编程我的头上?

Are there any good resources to wrap my head around Aspect Oriented Programming?

PS:我需要了解AO编程,而不是库或框架可用于.NET和C#:)

PS: I need to understand AO programming, not the libraries or frameworks available for .NET or C# :)

推荐答案

只是为了得到它周围你的头:这是能力的挂钩的如事件:创建对象,设置属性,等,和一般的附加功能对他们来说,那将填充相关内容。

Just to get your head around it: It is the ability to hook events such as: creation of objects, setting of properties, etc, and attach general functions to them, that will be populated with relevant context.

由于C#不具有一个内置的设施这一点,你需要一个框架,像PostSharp,做'字节code织(即只写code实际上打的电话,直接在类)来模拟它。

Because C# doesn't have an inbuilt facility for this, you need a framework, like PostSharp, to do 'bytecode weaving' (i.e. just writing code to actually make the calls, directly to your classes) to simulate it.

这篇关于在C#中面向方面编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆