Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Aspects / Override­Strategy

Class OverrideStrategy

Conflict behavior of introduction advice.

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

Fields

Name Description
Default

The advice fails with a compilation error if the member already exists in the target declaration. Same as Fail.

Fail

The advice fails with a compilation error if the member exists in the target declaration.

Ignore

Advice is ignored if the member already exists in the target declaration.

New

If the member already exists, the advice attempts to redefine it using new or fails with a compilation error if that is not possible.

Override

Advice attempts to override the existing member or fails with a compilation error if that is not possible.

value__

Extension Methods

PresentingExtensions.AsHyperlink(Object)