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.
精彩评论