Open sandboxFocus

Constructor IntroduceMethodAdviceInstance

IntroduceMethodAdviceInstance(MethodInfo, Visibility, bool?, MemberOverrideAction)

Initializes a new instance of the IntroduceMethodAdviceInstance class.

Declaration
public IntroduceMethodAdviceInstance(MethodInfo method, Visibility visibility, bool? isVirtual, MemberOverrideAction overrideAction)
Parameters
Type Name Description
MethodInfo method

A public method of the aspect class.

Visibility visibility

Visibility of the introduced method.

bool? isVirtual

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.

MemberOverrideAction overrideAction

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.