Class DynamicMethodHelper
Inheritance
System.Object
DynamicMethodHelper
Assembly: MonoMod.Utils.dll
Syntax
public static class DynamicMethodHelper : Object
Methods
EmitGetReference<T>(ILProcessor, Int32)
Emit a reference to an arbitrary object. Note that the references "leak."
Declaration
public static int EmitGetReference<T>(this ILProcessor il, int id)
Parameters
Type |
Name |
Description |
Mono.Cecil.Cil.ILProcessor |
il |
|
System.Int32 |
id |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
EmitGetReference<T>(ILGenerator, Int32)
Emit a reference to an arbitrary object. Note that the references "leak."
Declaration
public static int EmitGetReference<T>(this ILGenerator il, int id)
Parameters
Type |
Name |
Description |
System.Reflection.Emit.ILGenerator |
il |
|
System.Int32 |
id |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
EmitReference<T>(ILProcessor, T)
Emit a reference to an arbitrary object. Note that the references "leak."
Declaration
public static int EmitReference<T>(this ILProcessor il, T obj)
Parameters
Type |
Name |
Description |
Mono.Cecil.Cil.ILProcessor |
il |
|
T |
obj |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
EmitReference<T>(ILGenerator, T)
Emit a reference to an arbitrary object. Note that the references "leak."
Declaration
public static int EmitReference<T>(this ILGenerator il, T obj)
Parameters
Type |
Name |
Description |
System.Reflection.Emit.ILGenerator |
il |
|
T |
obj |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
FreeReference(Int32)
Declaration
public static void FreeReference(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
GetReference(Int32)
Declaration
public static object GetReference(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Object |
|
SetReference(Int32, Object)
Declaration
public static void SetReference(int id, object obj)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Object |
obj |
|
Stub(DynamicMethodDefinition)
Fill the DynamicMethod with a stub.
Declaration
public static DynamicMethodDefinition Stub(this DynamicMethodDefinition dmd)
Parameters
Returns
Stub(DynamicMethod)
Fill the DynamicMethod with a stub.
Declaration
public static DynamicMethod Stub(this DynamicMethod dm)
Parameters
Type |
Name |
Description |
System.Reflection.Emit.DynamicMethod |
dm |
|
Returns
Type |
Description |
System.Reflection.Emit.DynamicMethod |
|