DynamicILInfo.DynamicMethod Property

Definition

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

C#
public System.Reflection.Emit.DynamicMethod DynamicMethod { get; }

Property Value

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

Remarks

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.

Applies to

Proizvod Verzije
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.1