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.
Declaration
public static ConstructorOverloadingAction ForwardAndMarkObsolete(string? description = null, bool isError = false)Parameters
| Type | Name | Description |
|---|---|---|
| string | description | Optional deprecation message displayed at the call site. When |
| bool | isError | When |
Returns
| Type | Description |
|---|---|
| ConstructorOverloadingAction |