MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsOverride­StrategyNew
Open sandboxFocus

OverrideStrategy.New Field

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

Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
public const OverrideStrategy New
Returns
Type Description
OverrideStrategy
Remarks

For attributes, this adds an instance of the attribute, even when some already exist.