tags:

views:

31

answers:

1

I've tried using AttributeTargetTypes, but it just won't work. What am I missing?

thanks

A: 

The easiest way to apply an aspect to all methods of a class is to annotate this class with the aspect custom attribute. AttributeTargetTypes, when the custom attribute is applied on assembly-level, should work also, at least if the type is a part of the current assembly.

Gael Fraiteur