Jon Jagger
jon@jaggersoft.com
Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specificationpreviousnextprevious at this levelnext at this level 24 Attributes Paragraph 1[Note: Much of the C# language enables the programmer to specify declarative information about the entities defined in the program. For example, the accessibility of a method in a class is specified by decorating it with the method-modifiers public, protected, internal, and private. end note] Paragraph 21 C# enables programmers to invent new kinds of declarative information, called attributes. 2 Programmers can then attach attributes to various program entities, and retrieve attribute information in a run-time environment. [Note: For instance, a framework might define a HelpAttribute attribute that can be placed on certain program elements (such as classes and methods) to provide a mapping from those program elements to their documentation. end note] Paragraph 31 Attributes are defined through the declaration of attribute classes (§24.1), which may have positional and named parameters (§24.1.2). 2 Attributes are attached to entities in a C# program using attribute specifications (§24.2), and can be retrieved at run-time as attribute instances (§24.3).
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS