PostSharp6.2/API Reference/Post­Sharp.​Aspects.​Advices Namespace/Member­Override­Action Enumeration

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.2.13.0 (6.2.13.0)
Syntax
C#
public enum MemberOverrideAction
Members
  Member nameValueDescription
Default0Fail
Fail0 Emits a build time error.
Ignore1 Silently ignore the member introduction.
OverrideOrFail2 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).
OverrideOrIgnore3 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).
See Also