AutoInjectIntoTargetAttribute

Overview

Specialized aspect attribute to automatically create a method in the class this attribute is applied to. Use it like this:

The aspect code adds a new method to the class, called 'Test', adds the parameter and sets the result. Then it creates the code needed to insert the original method body of that method into the target.

Location


Properties


External

If true, this method will be an external method (dllimport or com)

 

property External: Boolean read write;

 

Boolean External { get; set; }

 

var External: Boolean { get{} set{} }

 

Boolean External { __get; __set; }

 

Property External() As Boolean

Final

Use this property to make sure a method cannot be inherited from

 

property Final: Boolean read write;

 

Boolean Final { get; set; }

 

var Final: Boolean { get{} set{} }

 

Boolean Final { __get; __set; }

 

Property Final() As Boolean

Virtual

Use this property to make this member virtual, override or abstract

 

property Virtual: VirtualMode read write;

 

VirtualMode Virtual { get; set; }

 

var Virtual: VirtualMode { get{} set{} }

 

VirtualMode Virtual { __get; __set; }

 

Property Virtual() As VirtualMode

Instance Methods


constructor

Constructor for this class

 

constructor

 

AutoInjectIntoTargetAttribute()

 

init()

 

AutoInjectIntoTargetAttribute()

 

Sub New()