ECMA-334 C# Language Specification24: Attributes |
method-modifier
s public, protected, internal, and private. end note]
C# enables programmers to invent new kinds of declarative information, called attributes. Programmers can then attach attributes to various program entities, and retrieve attribute information in a run-time environment.
Attributes are defined through the declaration of attribute classes (24.1), which may have positional and named parameters (24.1.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).
In This Section: