MemberOverrideAction Enumeration |
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 (in PostSharp.dll) Version: 6.9.11.0 (6.9.11.0)
C#
public enum MemberOverrideAction
Member name | Value | Description | |
---|---|---|---|
Default | 0 | Fail | |
Fail | 0 | Emits a build time error. | |
Ignore | 1 | Silently ignore the member introduction. | |
OverrideOrFail | 2 | 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 | 3 | 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). |