Base class for advice instances, which can be provided dynamically by the aspect thanks to the IAdviceProvider interface.
Inheritance
AdviceInstance
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public abstract class AdviceInstance
Remarks
The only supported dynamic advice currently is ImportLocationAdviceInstance.
Constructors
Name | Description |
---|---|
AdviceInstance() |
Properties
Name | Description |
---|---|
Description | A human-readable description of the current advice instance. |
LinesOfCodeAvoided | The number of lines of hand-written code avoided by this specific AdviceInstance. |
MasterAspectMember | Gets the main field or method of the aspect class that the current AdviceInstance relates to. |