MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsInterface­Member­Override­Strategy
Open sandboxFocus

InterfaceMemberOverrideStrategy Class

Member conflict behavior of interface introduction advice.

Inheritance
System.Object
InterfaceMemberOverrideStrategy
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class InterfaceMemberOverrideStrategy : Enum

Fields

Name Description
Default

The behavior depends on the OverrideStrategy specified when calling the ImplementInterface(INamedType, INamedType, OverrideStrategy, Object) method. When set to Fail or Ignore, 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.

value__