MethodBase::IsConstructor Property
.NET Framework (current version)
Gets a value indicating whether the method is a constructor.
Assembly: mscorlib (in mscorlib.dll)
public: [ComVisibleAttribute(true)] property bool IsConstructor { virtual bool get() sealed; }
Property Value
Type: System::Booleantrue if this method is a constructor represented by a ConstructorInfo object (see note in Remarks about ConstructorBuilder objects); otherwise, false.
Note |
|---|
The IsConstructor property returns false for a ConstructorBuilder object in a dynamic type, unless the MethodAttributes::RTSpecialName flag was included in the attributes parameter when the constructor was defined. Omitting the RTSpecialName flag does not affect the correctness of the emitted constructor. |
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show:
