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

Advice Class

Base class for all custom attributes representing an advice.

Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public abstract class Advice : Attribute
Remarks

Advices are behaviors added to aspects by the way of custom attributes. Other ways to add behaviors is to implement interface methods.

Advice custom attributes are typically used on aspect classes, or on members of aspect classes.

Constructors

Name Description
Advice()

Properties

Name Description
Description

A human-readable description of the current advice.

LinesOfCodeAvoided

Reduction in the code lines count achieved by applying the advice instance to one code element.

See Also