Method | Description | |
---|---|---|
AddAdditionalMembers ( Mono.Cecil.TypeDefinition host ) : void |
Adds additional members to the host type.
|
|
AddLocals ( Mono.Cecil.MethodDefinition hostMethod ) : void |
Adds local variables to the hostMethod.
|
|
ImportReferences ( Mono.Cecil.ModuleDefinition module ) : void |
Adds additional references to the target module.
|
|
Rewrite ( Mono.Cecil.MethodDefinition method, Mono.Cecil.Cil.CilWorker IL, IEnumerable |
Rewrites a target method using the given CilWorker.
|
Method | Description | |
---|---|---|
Replace ( |
Replaces the oldInstruction with a new set of IL instructions..
|
|
ShouldReplace ( |
Determines whether or not the method rewriter should replace the oldInstruction.
|
public AddAdditionalMembers ( Mono.Cecil.TypeDefinition host ) : void | ||
host | Mono.Cecil.TypeDefinition | The host type. |
return | void |
public AddLocals ( Mono.Cecil.MethodDefinition hostMethod ) : void | ||
hostMethod | Mono.Cecil.MethodDefinition | The target method. |
return | void |
public ImportReferences ( Mono.Cecil.ModuleDefinition module ) : void | ||
module | Mono.Cecil.ModuleDefinition | The host module. |
return | void |
protected abstract Replace ( |
||
oldInstruction | The instruction currently being evaluated. | |
hostMethod | Mono.Cecil.MethodDefinition | The method that contains the target instruction. |
IL | Mono.Cecil.Cil.CilWorker | The CilWorker for the target method body. |
return | void |
public Rewrite ( Mono.Cecil.MethodDefinition method, Mono.Cecil.Cil.CilWorker IL, IEnumerable |
||
method | Mono.Cecil.MethodDefinition | The target method. |
IL | Mono.Cecil.Cil.CilWorker | The CilWorker that will be used to rewrite the target method. |
oldInstructions | IEnumerable |
The original instructions from the target method body. |
return | void |
protected abstract ShouldReplace ( |
||
oldInstruction | The instruction that is currently being evaluated. | |
hostMethod | Mono.Cecil.MethodDefinition | The method that hosts the current instruction. |
return | bool |