AdviceInstance Class |
Base class for advice instances, which can be provided dynamically by the aspect thanks to the IAdviceProvider interface.
System.Object
PostSharp.Aspects.Advices.AdviceInstance
PostSharp.Aspects.Advices.ImportMemberAdviceInstance
PostSharp.Aspects.Advices.IntroduceInterfaceAdviceInstance
PostSharp.Aspects.Advices.IntroduceMemberAdviceInstance
PostSharp.Aspects.Advices.AdviceInstance
PostSharp.Aspects.Advices.ImportMemberAdviceInstance
PostSharp.Aspects.Advices.IntroduceInterfaceAdviceInstance
PostSharp.Aspects.Advices.IntroduceMemberAdviceInstance
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public abstract class AdviceInstance
The AdviceInstance type exposes the following members.
Name | Description | |
---|---|---|
AdviceInstance | Initializes a new instance of the AdviceInstance class |
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.
|
The only supported dynamic advice currently is ImportLocationAdviceInstance.