PostSharp6.2/API Reference/Post­Sharp.​Aspects.​Advices Namespace/Introduce­Method­Advice­Instance Class/Introduce­Method­Advice­Instance Constructor

IntroduceMethodAdviceInstance Constructor

Initializes a new instance of the IntroduceMethodAdviceInstance class.

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public IntroduceMethodAdviceInstance(
	MethodInfo method,
	Visibility visibility,
	Nullable<bool> isVirtual,
	MemberOverrideAction overrideAction
)

Parameters

method
Type: System.Reflection.MethodInfo
A public method of the aspect class.
visibility
Type: PostSharp.Reflection.Visibility
Visibility of the introduced method.
isVirtual
Type: System.Nullable<Boolean>
true if the introduced method should be virtual, false if it should be non-virtual (or sealed, if the method is overriding another one), or null if the method should be virtual only if the overridden method is also virtual. See IsVirtual for details.
overrideAction
Type: PostSharp.Aspects.Advices.MemberOverrideAction
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.
See Also