Open sandboxFocus

Enum MemberOverrideAction

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.

Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public enum MemberOverrideAction

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).