Struct ConstructorDataModel
A constructor data model wrapping an IMethodSymbol.
public readonly struct ConstructorDataModel
- Inherited Members
Properties
Constructor
The constructor symbol that this model represents.
public required IMethodSymbol Constructor { get; init; }
Property Value
DeclaringType
The declaring type of the constructor.
public INamedTypeSymbol DeclaringType { get; }
Property Value
MemberInitializers
The members that could or should be initialized in conjunction with this constructor. This includes required or init-only members that are not initialized by the constructor itself.
public required ImmutableArray<PropertyDataModel> MemberInitializers { get; init; }
Property Value
Parameters
The parameters of the constructor.
public required ImmutableArray<ParameterDataModel> Parameters { get; init; }