System.Reflection.Emit.ConstructorBuilder.GetILGenerator Method

Gets an System.Reflection.Emit.ILGenerator for this constructor.

Syntax

public ILGenerator GetILGenerator ()

Returns

Returns an System.Reflection.Emit.ILGenerator object for this constructor.

Remarks

The runtime generates the code for default constructors. Therefore, if an attempt is made to obtain an ILGenerator, an exception will be thrown.

Requirements

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