AutoInjectIntoTargetAttribute Class
From The Oxygene Language Wiki
This is a Language topic
Feel free to add your notes to this topic below.
[AttributeUsage((AttributeTargets.&Event or AttributeTargets.Field or AttributeTargets.&Property or AttributeTargets.&Method, AllowMultiple := false, &Inherited := true)] AutoInjectIntoTargetAttribute = public sealed class(Attribute, IMethodImplementationDecorator, IMethodInterfaceDecorator, IPropertyInterfaceDecorator, IPropertyImplementationDecorator, IEventInterfaceDecorator, IEventImplementationDecorator, IFieldInterfaceDecorator, IBaseAspect)
Specialized aspect attribute to automatically create a method in the class this attribute is applied to. Use it like this:
[aspect:AutoInjectIntoTarget] method Test(s: string): string;
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.
Namespace: Cirrus
Members
| | |
|---|---|
| constructor | Constructor for this class |
Properties
| | |
|---|---|
| External: Boolean | If true, this method will be an external method (dllimport or com) |
| Final: Boolean | Use this property to make sure a method cannot be inherited from |
| Virtual: Boolean | Use this property to make this member virtual, override or abstract |
See Also
- Cirrus
- External Links:
- Prism Aspects to Help with Monobjc Development (RemObjects Blogs)
- IMethodImplementationDecorator Interface
- IMethodInterfaceDecorator Interface
- IPropertyInterfaceDecorator Interface
- IPropertyImplementationDecorator Interface
- IEventInterfaceDecorator Interface
- IEventImplementationDecorator Interface
- IFieldInterfaceDecorator Interface
- IBaseAspect Interface
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To