Method | Description | |
---|---|---|
AddLocals ( Mono.Cecil.MethodDefinition hostMethod ) : void |
Adds locals to the target method.
|
|
ImportReferences ( Mono.Cecil.ModuleDefinition module ) : void |
Adds references to the target module.
|
|
InterceptFieldAccess ( bool>.Func |
Initializes a new instance of the InterceptFieldAccess class.
|
|
InterceptFieldAccess ( IFieldFilter filter ) : System |
Initializes a new instance of the InterceptFieldAccess class.
|
Method | Description | |
---|---|---|
Replace ( |
Replaces the oldInstruction with a set of new instructions.
|
|
ShouldReplace ( |
Determines whether or not the method rewriter should replace the oldInstruction. The InterceptFieldAccess class only modifies instructions that get or set the value of static and instance fields. |
Method | Description | |
---|---|---|
InterceptFieldAccess ( ) : System |
public AddLocals ( Mono.Cecil.MethodDefinition hostMethod ) : void | ||
hostMethod | Mono.Cecil.MethodDefinition | The method to be modified |
return | void |
public ImportReferences ( Mono.Cecil.ModuleDefinition module ) : void | ||
module | Mono.Cecil.ModuleDefinition | The module that will be modified. |
return | void |
public InterceptFieldAccess ( bool>.Func |
||
filter | bool>.Func | The filter that determines which fields should be intercepted. |
return | System |
public InterceptFieldAccess ( IFieldFilter filter ) : System | ||
filter | IFieldFilter | The filter that determines which fields should be intercepted. |
return | System |
protected 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 that will be used to emit the method body instructions. |
return | void |
protected ShouldReplace ( |
||
oldInstruction | The instruction that is currently being evaluated. | |
hostMethod | Mono.Cecil.MethodDefinition | The method that hosts the current instruction. |
return | bool |