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
System.Object
  PostSharp.Aspects.Advices.AdviceInstance
    PostSharp.Aspects.Advices.IntroduceMemberAdviceInstance
      PostSharp.Aspects.Advices.IntroduceMethodAdviceInstance

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 6.0.24.0 (6.0.24.0)
Syntax
C#
public sealed class IntroduceMethodAdviceInstance : IntroduceMemberAdviceInstance

The IntroduceMethodAdviceInstance type exposes the following members.

Constructors
  NameDescription
Public methodIntroduceMethodAdviceInstance
Initializes a new instance of the IntroduceMethodAdviceInstance class.
Properties
  NameDescription
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