Base class for all custom attributes representing an advice.
Inheritance
Advice
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public abstract class Advice : AttributeRemarks
Advices are behaviors added to aspects by means of custom attributes. Other ways to add behaviors are 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 | Gets or sets a human-readable description of the current advice. |
| LinesOfCodeAvoided | Gets or sets the reduction in the number of lines of code achieved by applying the advice instance to one code element. |