User Defined Attributes

Max Samukha maxsamukha at gmail.com
Tue Nov 6 12:16:21 PST 2012


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.



More information about the Digitalmars-d-announce mailing list