PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesMember­Override­Action
Open sandboxFocus

MemberOverrideAction Class

Enumeration of actions to be overtaken by the IntroduceMemberAttribute aspect extension when the member to be introduced already exists in the aspect target type or its base type.

Inheritance
MemberOverrideAction
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public sealed class MemberOverrideAction : Enum

Fields

Name Description
Default Fail
Fail

Emits a build time error.

Ignore

Silently ignore the member introduction.

OverrideOrFail

Tries to override the member, and fails if it is impossible (i.e. if the existing member is defined in a base type and is sealed or non-virtual).

OverrideOrIgnore

Tries to override the member, and silently ignore if it is impossible (i.e. if the existing member is defined in a base type and is sealed or non-virtual).

value__