Member conflict behavior of interface introduction advice.
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum InterfaceMemberOverrideStrategy
Fields
Name | Description |
---|---|
Default | The behavior depends on the OverrideStrategy specified when calling the ImplementInterface(INamedType, INamedType, OverrideStrategy, object?) method. When set to Fail, the default value is Fail. When set to Override, the strategy is to override. |
Fail | The advice fails with a compilation error if a matching interface member already exists in the target declaration. |
Ignore | When the OverrideStrategy of the ImplementInterface(INamedType, INamedType, OverrideStrategy, object?) is set to Override, does not override this member if there is already an implementation. |
MakeExplicit | The advice introduces the interface member as explicit even if the interface member was supposed to be introduced as implicit. |