Specifies the actions that the IntroduceMemberAttribute aspect extension takes 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 MemberOverrideActionFields
| Name | Description |
|---|---|
| Default | The default action, which is Fail. |
| Fail | Emits a build-time error. |
| Ignore | Silently ignores the member introduction. |
| OverrideOrFail | Tries to override the member, and fails if it is impossible (that is, if the existing member is defined in a base type and is sealed or non-virtual). |
| OverrideOrIgnore | Tries to override the member, and silently ignores the introduction if it is impossible (that is, if the existing member is defined in a base type and is sealed or non-virtual). |