PostSharp6.6//API Reference/Post­Sharp.​Aspects.​Advices Namespace/Import­Member­Attribute Class/Import­Member­Attribute Properties

ImportMemberAttribute Properties

The ImportMemberAttribute type exposes the following members.

Properties
  NameDescription
Public propertyDescription
A human-readable description of the current advice.
(Inherited from Advice.)
Public propertyIsRequired
Determines whether a build time error must be issued if the member to be imported is absent. If false, the binding field will be null in case the imported member is absent.
Public propertyLinesOfCodeAvoided
Reduction in the code lines count achieved by applying the advice instance to one code element.
(Inherited from Advice.)
Public propertyMemberNames
Array of possible names of imported member in the order of precedence.
Public propertyOrder
Determines when the member should be imported: either before (BeforeIntroductions) or after (AfterIntroductions) members have been introduced by the current aspect. Default is BeforeIntroductions.
See Also