Aspect Oriented Programming (AOP)

Iv'e just stumbled upon some nice resources for Aspect Oriented Programming.
How many times have you had to write code that logs messages to a text file or database, using AOP techniques it is possible to decorate your .NET classes with attributes that will then automatically log all requests made to methods and functions.

Over the next few days I will be looking at how this all works. Some useful info can be found at the following sites: C# Corner (Aspect Oriented Programming), MSDN Article on AOP.

I have yet to find out what kind of performance hit the use of ContextBoundObject makes to classes generated in .NET, but I'm sure I will soon find out soon.

No Comments