Determines how to handle conflicts when introducing an interface member via InterfaceMemberAttribute when a member with the same name already exists on the target type.
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum InterfaceMemberOverrideStrategyRemarks
Use this enum with WhenExists to control per-member conflict resolution, overriding the default behavior specified by the OverrideStrategy parameter of ImplementInterface(IAdviser<INamedType>, INamedType, OverrideStrategy, object?).
Fields
| Name | Description |
|---|---|
| Default | Use the strategy from the OverrideStrategy parameter of ImplementInterface(INamedType, INamedType, OverrideStrategy, object?). |
| Fail | Report a compilation error if a matching member already exists in the target type. |
| Ignore | Do not introduce or override this member if a matching member already exists. |
| MakeExplicit | Introduce the interface member as an explicit implementation, avoiding the conflict with the existing member. |