Ivan
Ivan

Reputation: 75

.net method attributes

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

Answers (1)

bob
bob

Reputation: 6485

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

See 'getting started' for a simple example.

Upvotes: 2

Related Questions