PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesImport­Method­Advice­Instance
Open sandboxFocus

ImportMethodAdviceInstance Class

Represents an advises that import a method of the target class into the aspect class.

Inheritance
ImportMethodAdviceInstance
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public sealed class ImportMethodAdviceInstance : ImportMemberAdviceInstance

Constructors

Name Description
ImportMethodAdviceInstance(FieldInfo, String, Boolean, ImportMemberOrder)

Initializes a new instance of the ImportMethodAdviceInstance.

ImportMethodAdviceInstance(FieldInfo, String[], Boolean, ImportMemberOrder)

Initializes a new instance of the ImportMethodAdviceInstance.

Properties

Name Description
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.

MemberNames

Gets the fallback list of possible names of the member to be imported.