PostSharp6.2/API Reference/Post­Sharp.​Aspects.​Advices Namespace/Advice­Instance Class

AdviceInstance Class

Base class for advice instances, which can be provided dynamically by the aspect thanks to the IAdviceProvider interface.
Inheritance Hierarchy

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.7.0 (6.2.7.0)
Syntax
C#
public abstract class AdviceInstance

The AdviceInstance type exposes the following members.

Constructors
  NameDescription
Protected methodAdviceInstance
Initializes a new instance of the AdviceInstance class
Properties
  NameDescription
Public propertyDescription
A human-readable description of the current advice instance.
Public propertyLinesOfCodeAvoided
The number of lines of hand-written code avoided by this specific AdviceInstance.
Public propertyMasterAspectMember
Gets the main field or method of the aspect class that the current AdviceInstance relates to.
Remarks

The only supported dynamic advice currently is ImportLocationAdviceInstance.

See Also