PostSharp 4.3 / / Post­Sharp Documentation / 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
  Name Description
Public property Description
A human-readable description of the current advice.
(Inherited from Advice.)
Public property IsRequired
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 property LinesOfCodeAvoided
Reduction in the code lines count achieved by applying the advice instance to one code element.
(Inherited from Advice.)
Public property MemberName Obsolete.
Name of the imported member.
Public property MemberNames
Array of possible names of imported member in the order of precedence.
Public property Order
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