Until now you have gotten a lot of examples about applying attributes, but for the sake of completeness we provide information here. When applying attributes to your own types or members, you enclose the attribute name between angle brackets, as in the following example:
In this case the
Serializable attribute is parameterless (and in this case you can omit round parenthesis).
When you apply an attribute, your object is decorated with that attribute. Another common description utilized when applying attributes is that an object is marked. Referring to the previous example, you can say that the
Person class is decorated with ...
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.