Attribute syntax
Attribute syntax consists of several key components. An attribute
declaration starts with An attribute name is resolved to a class, and the arguments are evaluated and passed to the constructor when an instance of the attribute is requested through the Reflection API. Therefore, it is recommended to introduce a class for each attribute. Example #1 Attribute Syntax |