PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Advices Namespace / Introduce­Method­Advice­Instance Class

IntroduceMethodAdviceInstance Class

Represents an advice that introduces a method of the aspect class into the target class.
Inheritance Hierarchy

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public sealed class IntroduceMethodAdviceInstance : IntroduceMemberAdviceInstance

The IntroduceMethodAdviceInstance type exposes the following members.

Public methodIntroduceMethodAdviceInstance
Initializes a new instance of the IntroduceMethodAdviceInstance class.
Public propertyDescription
A human-readable description of the current advice instance.
(Inherited from AdviceInstance.)
Public propertyIsVirtual
Determines whether the introduced member should be virtual.
(Inherited from IntroduceMemberAdviceInstance.)
Public propertyLinesOfCodeAvoided
The number of lines of hand-written code avoided by this specific AdviceInstance.
(Inherited from AdviceInstance.)
Public propertyMasterAspectMember
Gets the main field or method of the aspect class that the current AdviceInstance relates to.
(Overrides AdviceInstance.MasterAspectMember.)
Public propertyOverrideAction
Determines the action to be overtaken when the member to be introduced already exists in the type to which the aspect is applied, or to a base type.
(Inherited from IntroduceMemberAdviceInstance.)
Public propertyVisibility
Gets the visibility of the introduced member.
(Inherited from IntroduceMemberAdviceInstance.)
See Also