Implement method decorators in C#

前端 未结 4 1529
忘了有多久
忘了有多久 2020-12-31 12:48

In python is possible to implement function decorators to extend the behavior of functions and methods.

In particular I\'m migrating a devi

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-31 13:19

    As others have mentioned you are looking for AOP. PostSharp is a good post compile solution, but Castle DynamicProxy is a runtime AOP solution.

提交回复
热议问题