DESIGN: How .NET's Custom Attributes Affect Design

  • Authors:
  • James Newkirk;Alexei A. Vorontsov

  • Affiliations:
  • -;-

  • Venue:
  • IEEE Software
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

In its first release of the .NET Framework, Microsoft has provided a defined method for adding declarative information (metadata) to runtime entities in the platform. These entities include classes, methods, properties, and instance or class variables. Using .NET, you can also add declarative information to the assembly, which is a unit of deployment that is conceptually similar to a .dll or .exe file. An assembly includes attributes that describe its identity (name, version, and culture), informational attributes that provide additional product or company information, manifest attributes that describe configuration information, and strong name attributes that describe whether the assembly is signed using public key encryption. The program can retrieve this metadata at runtime to control how the program interacts with services such as serialization and security. We compare design decisions made using custom attributes in .NET with the Java platform.