Attributes and Runtime Behavior

  • Tom Barnaby
  • Jason Bock

Abstract

As you saw in Chapter 2, you can use attributes to alter the outcome of the compilation process. But that is not the only time attributes come into play. Some attributes are examined as the code is running, and their presence in the assembly results in certain actions. For example, security-based attributes can be used to state that certain permissions must exist; otherwise, the code will not execute. Other attributes allow an object’s state to be persisted to disk. This chapter will cover some of these runtime attributes and how they affect your code as it executes. We’ll start our investigation of runtime attributes by looking at .NET security.

Keywords

Defend Suffix Glean Cute 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Tom Barnaby and Jason Bock 2003

Authors and Affiliations

  • Tom Barnaby
  • Jason Bock

There are no affiliations available

Personalised recommendations