So far, we have focused on attributes defined and used by either the compiler or the .NET runtime. As an example, consider the Serializable attribute. Given that the runtime defines this attribute, it is perfectly reasonable that the runtime can look for its application in code and respond appropriately. The preceding chapters have shown how .NET applies attributes throughout the .NET Framework to provide important functionality such as COM interoperability, serialization, security, and integration with COM+ services. Clearly, Microsoft developers felt that attributes were a useful construct and used them heavily when designing the framework.
KeywordsMethod Call Custom Attribute Exception Handling Server Context Context Attribute
Unable to display preview. Download preview PDF.