Open sandboxFocus

Class AdviceInstance

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

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.