DynamicILInfo.DynamicMethod Property


Gets the dynamic method whose body is generated by the current instance.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public DynamicMethod DynamicMethod { get; }

Property Value

Type: System.Reflection.Emit.DynamicMethod

A DynamicMethod object representing the dynamic method for which the current DynamicILInfo object is generating code.

A DynamicILInfo object is always associated with a dynamic method. The purpose of the DynamicILInfo class is to provide another way of inserting the MSIL stream, exception handling, and local variable signature into a dynamic method, for developers who want to generate MSIL without using the ILGenerator class.

.NET Framework
Available since 2.0
Return to top