This documentation is archived and is not being maintained.

DynamicILInfo.DynamicMethod Property

Note: This property is new in the .NET Framework version 2.0.

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 */
public DynamicMethod get_DynamicMethod ()

public function get DynamicMethod () : DynamicMethod

Property Value

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0