System.Reflection.MethodBase.IsConstructor Property

Gets a value indicating whether the method is a constructor.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public bool IsConstructor { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Note:

The MethodBase.IsConstructor property returns false for a System.Reflection.Emit.ConstructorBuilder object in a dynamic type, unless the MethodAttributes.RTSpecialName flag was included in the attributes parameter when the constructor was defined. Omitting the MethodAttributes.RTSpecialName flag does not affect the correctness of the emitted constructor.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0