Class DynamicMethodDefinition
Inheritance
System.Object
DynamicMethodDefinition
Implements
System.IDisposable
Assembly: MonoMod.Utils.dll
Syntax
public sealed class DynamicMethodDefinition : Object, IDisposable
Constructors
DynamicMethodDefinition(MethodBase)
Declaration
public DynamicMethodDefinition(MethodBase method)
Parameters
Type |
Name |
Description |
System.Reflection.MethodBase |
method |
|
DynamicMethodDefinition(String, Type, Type[])
Declaration
public DynamicMethodDefinition(string name, Type returnType, Type[] parameterTypes)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Type |
returnType |
|
System.Type[] |
parameterTypes |
|
Fields
Debug
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Properties
Definition
Declaration
public MethodDefinition Definition { get; }
Property Value
Type |
Description |
Mono.Cecil.MethodDefinition |
|
Method
Declaration
public MethodBase Method { get; }
Property Value
Type |
Description |
System.Reflection.MethodBase |
|
Module
Declaration
public ModuleDefinition Module { get; }
Property Value
Type |
Description |
Mono.Cecil.ModuleDefinition |
|
OriginalMethod
Declaration
public MethodBase OriginalMethod { get; }
Property Value
Type |
Description |
System.Reflection.MethodBase |
|
Methods
Dispose()
Declaration
Generate()
Declaration
public MethodInfo Generate()
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
Generate(Object)
Declaration
public MethodInfo Generate(object context)
Parameters
Type |
Name |
Description |
System.Object |
context |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|
GetDumpName(String)
Declaration
public string GetDumpName(string type)
Parameters
Type |
Name |
Description |
System.String |
type |
|
Returns
Type |
Description |
System.String |
|
GetILGenerator()
Declaration
public ILGenerator GetILGenerator()
Returns
Type |
Description |
System.Reflection.Emit.ILGenerator |
|
GetILProcessor()
Declaration
public ILProcessor GetILProcessor()
Returns
Type |
Description |
Mono.Cecil.Cil.ILProcessor |
|
Reload()
Declaration
Implements
System.IDisposable
Extension Methods