tags:

views:

229

answers:

4

Hi,

I would like to ask users of the AOP framework Postsharp, what specifically are you using the framework for?

Also, I know it's use has a big negative impact on build times, but how about runtime performace? Is there much of a hit?

Thanks,

S

+2  A: 

I use it to remove the property name smell from INotifyPropertyChanged methods, and it hasn't hugely affected runtime performance.

Pete OHanlon
Can you provide an example please ?
Melursus
http://www.postsharp.org/blog/introducing-postsharp-20-1-notifypropertychanged gives you an idea of what I'm talking about.
Pete OHanlon
+2  A: 

I use the compile time weaving to add extra functionality to some methods that have been decorated with a certain attribute.

Like here.

Frederik Gheysels
A: 

We use it to inject our own aspects (persistent property accessors, construction notifiers, session & transaction activators, etc.) in DataObjects.Net.

Alex Yakunin
+1  A: 

In short, it makes development faster, code more maintainable and easier to understand. There doesn't have to be a performance hit when you are willing to put in the effort.

Hermann