MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeINamed­TypePrimary­Constructor
Open sandboxFocus

INamedType.PrimaryConstructor Property

PrimaryConstructor

Gets the primary constructor if it is defined, otherwise returns null.

Declaration
IConstructor PrimaryConstructor { get; }
Property Value
Type Description
IConstructor
Remarks

Primary constructors are recognized only for the current compilation.