Allows you to configure a constructor that has been created by an advice.
Namespace: Metalama.Framework.Code.DeclarationBuilders
Assembly: Metalama.Framework.dll
Syntax
public interface IConstructorBuilder : IConstructor, IConstructorInvoker, IMethodBaseBuilder, IMethodBase, IHasParametersBuilder, IHasParameters, IMemberBuilder, IMember, IMemberOrNamedTypeBuilder, IMemberOrNamedType, INamedDeclaration, IDeclarationBuilder, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IEquatable<IDeclaration>Remarks
Use this builder when introducing constructors via IntroduceConstructor(IAdviser<INamedType>, string, OverrideStrategy, Action<IConstructorBuilder>?, object?, object?).
The builder allows you to configure the constructor initializer (base or this call) and add arguments to pass to the chained constructor.
Properties
| Name | Description |
|---|---|
| InitializerKind | Gets or sets the kind of constructor initializer (e.g., Base or This). |
Methods
| Name | Description |
|---|---|
| AddInitializerArgument(IExpression, string?) | Adds an argument to the constructor initializer (base or this call). |