C# Class Testeroids.Aspects.EnforceInstanceLevelRulesAspect

Inheritance: InstanceLevelAspect
Mostra file Open project: Testeroids/Testeroids

Public Methods

Method Description
CompileTimeValidate ( Type type ) : bool

Checks whether the type is a candidate for the aspect to apply to it.

EnforceInstanceLevelRulesAspect ( ) : System

Initializes a new instance of the EnforceInstanceLevelRulesAspect class.

RuntimeInitializeInstance ( ) : void

Initializes the aspect instance. This method is invoked when all system elements of the aspect (like member imports) have completed. All rules are initialized.

Private Methods

Method Description
OnPropertyGet ( LocationInterceptionArgs args ) : void
OnPropertySet ( LocationInterceptionArgs args ) : void

Method Details

CompileTimeValidate() public method

Checks whether the type is a candidate for the aspect to apply to it.
public CompileTimeValidate ( Type type ) : bool
type System.Type the type to check if it needs the attribute.
return bool

EnforceInstanceLevelRulesAspect() public method

Initializes a new instance of the EnforceInstanceLevelRulesAspect class.
public EnforceInstanceLevelRulesAspect ( ) : System
return System

RuntimeInitializeInstance() public method

Initializes the aspect instance. This method is invoked when all system elements of the aspect (like member imports) have completed. All rules are initialized.
public RuntimeInitializeInstance ( ) : void
return void