开发者

.net method attributes

开发者 https://www.devze.com 2023-01-27 02:48 出处:网络
I need to call some code before calling methods that decorated by Attribute [MyTracedMethod] and after.

I need to call some code before calling methods that decorated by Attribute [MyTracedMethod] and after.

Can i d开发者_如何学JAVAo this by .net Method Atributes?


You will need an AOP Framework for this, like PostSharp.

See 'getting started' for a simple example.

0

精彩评论

暂无评论...
验证码 换一张
取 消