PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Advices Namespace / Import­Member­Advice­Instance Class / Import­Member­Advice­Instance Properties
ImportMemberAdviceInstance Properties

The ImportMemberAdviceInstance type exposes the following members.

Properties
  Name Description
Public property AspectField
Gets the field of the aspect class to which the field or property needs to be bound.
Public property Description
A human-readable description of the current advice instance.
(Inherited from AdviceInstance.)
Public property IsRequired
Determines whether a build-time error should be emitted if the member cannot be found. If false, the binding field will be null in case the imported member is absent.
Public property LinesOfCodeAvoided
The number of lines of hand-written code avoided by this specific AdviceInstance.
(Inherited from AdviceInstance.)
Public property MasterAspectMember
Gets the main field or method of the aspect class that the current AdviceInstance relates to.
(Overrides AdviceInstance.MasterAspectMember.)
Public property Member
Gets the reflection object (LocationInfo or MethodInfo) that needs to be imported, or null if the exact member is unknown and must be matched by name and signature.
Public property MemberNames
Gets the fallback list of possible names of the member to be imported.
Public property Order
Determines whether the AspectField should be bound to the member as resolved before or after introduction of new members into the target class by the current advise.
See Also