InjectInterfaceAttribute Class

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.


[AttributeUsage(AttributeTargets.&Class, AllowMultiple := true, &Inherited := true)]
InjectInterfaceAttribute = public sealed class(Attribute)

The InjectInterfaceAttribute can be used on aspects to hint to the compiler that the target class this aspect is used on should implement this interface and if it doesn't, the compiler should add it. The aspect itself is responsible to add the members required by this interface through other means like the InjectIntoTargetAttribute Class or AutoInjectIntoTargetAttribute Class attribute.

Namespace: Cirrus


Members

Method
Description
constructor(aType: Type)Constructor for this class


Properties

Property
Description
Type: TypeThe interface type to inject


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox