Reputation: 75
I need to call some code before calling methods that decorated by Attribute [MyTracedMethod] and after.
Can i do this by .net Method Atributes?
Upvotes: 0
Views: 279
Reputation: 6485
You will need an AOP Framework for this, like PostSharp.
See 'getting started' for a simple example.
Upvotes: 2