Attributes

The .NET Framework makes extensive use of attributes, descriptive pieces of read-only information that a programmer can place in an object's metadata. Attributes can be read by any interested piece of code that has the required level of permission. Many attributes are provided and used by the system. Others are defined by programmers and used for their own purposes. All attributes derive from the abstract base class System.Attribute. The attributes in Table 2 were felt to be common enough to occupy the System namespace. Many other subordinate namespaces also define more specialized attributes.

AttributesMeaning
AttributeUsageAttributeUsed in the definition of other attribute classes, specifying the target types to which the other attribute ...

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library 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.