Open sandboxFocus

Struct ConstructorOverloadingAction

Describes what an IConstructorOverloadingStrategy wants the framework to do with a mutated constructor: do nothing, generate a forwarding constructor to keep source and binary compatibility with the original constructor, or generate a forwarding constructor decorated with ObsoleteAttribute.

Namespace: Metalama.Framework.Advising
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public readonly struct ConstructorOverloadingAction

Properties

Name Description
Forward

Gets a ConstructorOverloadingAction that means the framework should generate a forwarding constructor that chains to the mutated constructor via : this(...).

None

Gets a ConstructorOverloadingAction that means no forwarding constructor should be generated for the mutated constructor.

Methods

Name Description
ForwardAndMarkObsolete(string?, bool)

Creates a ConstructorOverloadingAction that means the framework should generate a forwarding constructor and decorate it with ObsoleteAttribute so downstream callers see a deprecation warning (or error) when they use the pre-mutation signature.

See Also