On Tuesday, 6 November 2012 at 19:43:54 UTC, Jacob Carlborg wrote:

You need to specify the target tough, like declaration of an annotation:

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Test { }

Yep, C# attributes can be restricted to specific targets as well.

Reply via email to