Provides factory access to the standard implementations of the IConstructorOverloadingStrategy interface. Each factory returns a ForwardConstructorStrategy whose WithObsoleteAttribute(string?, bool) method can be used to additionally decorate the generated forwarding constructor with ObsoleteAttribute.
Namespace: Metalama.Framework.Advising
Assembly: Metalama.Framework.dll
Syntax
public static class ConstructorOverloadingStrategyProperties
| Name | Description |
|---|---|
| ForwardDefaultConstructor | Gets a strategy that generates a forwarding constructor only when the mutated constructor is
the parameterless constructor, if it exists. This is the typical choice for types that must remain
constructible via CreateInstance<T>() or a |
| ForwardSourceConstructors | Gets a strategy that generates a forwarding constructor for every source constructor that the framework mutates. Aspect-introduced constructors are not themselves overloaded. Call WithObsoleteAttribute(string?, bool) on the returned instance to additionally decorate the generated forwarding constructor with ObsoleteAttribute. |