PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesAdvice­Instance
Open sandboxFocus

AdviceInstance Class

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 : Object
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.