Open sandboxFocus

Property PrimaryConstructor

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.