Attribute Specification
C# enables programmers to specify two different kinds of information in a program. The first kind forms the bulk of the program and comprises all the commands and keywords that are used to perform actions. The second kind of information is declarative information. This consists of the extra information about an entity that can be specified in the declaration statement of the entity. This second kind of information is attached to the various entities by means of attributes. It is a feature that is unique to C#. Attributes do not have counterparts in other comparable programming languages. The extra information attributes provided can be used at runtime to specify the manner in which a particular entity must be processed. ...
Get Special Edition Using C# 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.