Attributes

The Fore.NET language enables the developer to specify declarative information about the entities determined in the program. In addition to the standard method of determining declarative information as declaration modifiers (for example, scope modifiers), the language provides a new method of determining declarative information named attributes. Developers can assign attributes to various program entities, and retrieve attribute information during program runtime. Attributes are determined through the declaration of attribute classes, which may have positional and named parameters. Attributes for program entities are determined via attribute specification and can be obtained as attribute instances at program runtime.

Attribute Classes

A class that derives from the System.Attribute system class, whether directly or indirectly, is an attribute class. The declaration of an attribute class determines a new kind of attribute that can be placed on a declaration. By convention, names of all attribute classes end with the Attribute suffix.

NOTE. Uses of an attribute may either include or omit the Attribute suffix.

Additional information is contained in the following subsections: