InjectInterfaceAttribute

Overview

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 or AutoInjectIntoTargetAttribute attribute.

Location

Properties


Type

The interface type to inject

 

property Type: Type read;

 

Type Type { get; }

 

var Type: Type { get{} }

 

Type Type { __get; }

 

ReadOnly Property Type() As Type

Instance Methods


constructor

Constructor for this class

 

constructor(aType: Type)

 

InjectInterfaceAttribute(Type aType)

 

init(_ aType: Type)

 

InjectInterfaceAttribute(Type aType)

 

Sub New(aType As Type)

Parameters:

  • aType: interface to inject