Table of Contents

Struct ConstructorDataModel

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

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

IMethodSymbol

DeclaringType

The declaring type of the constructor.

public INamedTypeSymbol DeclaringType { get; }

Property Value

INamedTypeSymbol

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

ImmutableArray<PropertyDataModel>

Parameters

The parameters of the constructor.

public required ImmutableArray<ParameterDataModel> Parameters { get; init; }

Property Value

ImmutableArray<ParameterDataModel>