System.Reflection.Emit.TypeBuilder.DefineDefaultConstructor Method

Defines the default constructor. The constructor defined here will simply call the default constructor of the parent.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public ConstructorBuilder DefineDefaultConstructor (System.Reflection.MethodAttributes attributes)

Parameters

attributes
A MethodAttributes object representing the attributes to be applied to the constructor.

Returns

Returns the constructor.

Remarks

Because the default constructor is automatically defined, it is necessary to call this method only in the following situations:

Requirements

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