Table of Contents

Class DynamicMethodDefinition

Namespace
AsmResolver.DotNet.Dynamic
Assembly
AsmResolver.DotNet.Dynamic.dll

Represents a single method in a type definition of a .NET module.

public class DynamicMethodDefinition : MethodDefinition, IMemberDefinition, IOwnedCollectionElement<TypeDefinition>, IMemberRefParent, ICustomAttributeType, IMethodDefOrRef, IMethodDescriptor, IHasCustomAttribute, IHasGenericParameters, IMemberForwarded, IMemberDescriptor, IFullNameProvider, INameProvider, IModuleProvider, IImportable, IHasSecurityDeclaration, IManagedEntryPoint, IMetadataMember
Inheritance
DynamicMethodDefinition
Implements
Inherited Members
Extension Methods

Constructors

DynamicMethodDefinition(ModuleDefinition, object)

Create a Dynamic Method Definition

public DynamicMethodDefinition(ModuleDefinition module, object dynamicMethodObj)

Parameters

module ModuleDefinition

Target Module

dynamicMethodObj object

Dynamic Method / Delegate / DynamicResolver

Properties

IsSupported

Determines whether dynamic method reading is fully supported in the current host's .NET environment.

public static bool IsSupported { get; }

Property Value

bool

Module

Gets the module that defines the member definition or reference.

public override ModuleDefinition Module { get; }

Property Value

ModuleDefinition

Remarks

For member references, this does not obtain the module definition that the member is defined in. Rather, it obtains the module definition that references this reference.