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 new() generic constraint
while the aspect enriches the constructor signature with additional parameters. Call
WithObsoleteAttribute(string?, bool) on the returned instance to additionally
decorate the generated forwarding constructor with ObsoleteAttribute.
Declaration
public static ForwardConstructorStrategy ForwardDefaultConstructor { get; }Property Value
| Type | Description |
|---|---|
| ForwardConstructorStrategy |