Built-in AOP in C# - is it on the way?

前端 未结 4 717
鱼传尺愫
鱼传尺愫 2020-12-08 07:37

In large apps I find myself really wishing I had built-in AOP facilities. As it stands in C# the best you can do is factories and RealProxys, PostSharp, ICorDebug, ICorProfi

4条回答
  •  执笔经年
    2020-12-08 07:53

    Romain's answer covers (almost :) perfectly the current solutions. As for the future support, Anders Hejlsberg has previously stated that they'were in wait & see mode about AOP.

    We can only hope that with the managed rewrite of csc, and a «Compiler as a Service», one could plug into the compiler, and inject aspects there.

提交回复
热议问题