Advice Class |
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp (in PostSharp.dll) Version: 6.4.11.0 (6.4.11.0)
public abstract class Advice : Attribute
The Advice type exposes the following members.
Name | Description | |
---|---|---|
Advice | Initializes a new instance of the Advice class |
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.
|
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.
Reference
Other Resources
System.Attribute
PostSharp.Aspects.Advices.Advice
PostSharp.Aspects.Advices.CopyCustomAttributesAttribute
PostSharp.Aspects.Advices.GroupingAdvice
PostSharp.Aspects.Advices.ImportMemberAttribute
PostSharp.Aspects.Advices.InitializeAspectInstanceAdvice
PostSharp.Aspects.Advices.IntroduceInterfaceAttribute
PostSharp.Aspects.Advices.IntroduceMemberAttribute
PostSharp.Aspects.Advices.OnAspectsInitializedAdvice
PostSharp.Aspects.Advices.OnInstanceConstructedAdvice