Aspect-oriented Programming in .NET

I was listening to .NET Rocks! interviewing Mark Pollack about Spring.NET today.

The discussion about some of the features of Spring.NET that support Aspect Oriented Programming sounded very interesting.

Looking at their documentation, it appears that you can either do the AOP programmatically or via xml config files.

Neither approach really grabs me at the moment.

The Castle Project offers Aspect#, however I also came across PostSharp which does sound intriguing.

I think it would require decent testing as some people have not had 100% success with it, but I do like the approach of using .NET attributes to indicate the advice to apply.

Written on June 21, 2007