Property | Type | Description | |
---|---|---|---|
Assert | void | ||
InjectionDefinition | System |
Method | Description | |
---|---|---|
Inject ( |
Inject the call of the injection method into the target.
|
|
Inject ( int startCode, int token, InjectDirection direction = InjectDirection.Before ) : void |
Inject the call of the injection method into the target.
|
|
InjectionDefinition ( MethodDefinition injectTarget, MethodDefinition injectMethod, InjectFlags flags, int localVarIDs = null ) : System |
Attempts to construct an instance of InjectionDefinition by linking the injection method with the injection target (the method to be injected). The way how the method is injected is specified by the injection flags. If the injection method does not match the criteria set by the injection flags, an exception will be thrown.
|
Method | Description | |
---|---|---|
Assert ( bool val, string message ) : void | ||
InjectionDefinition ( ) : System |
public Inject ( |
||
startCode | The instruction from which to start injecting. | |
token | int |
/// If |
direction | InjectDirection | The direction in which to insert the call: either above the start code or below it. |
return | void |
public Inject ( int startCode, int token, InjectDirection direction = InjectDirection.Before ) : void | ||
startCode | int | /// The index of the instruction from which to start injecting. If positive, will count from the /// beginning of the method. If negative, will count from the end. For instance, -1 is the method's last instruction /// and 0 is the first. /// |
token | int |
/// If |
direction | InjectDirection | The direction in which to insert the call: either above the start code or below it. |
return | void |
public InjectionDefinition ( MethodDefinition injectTarget, MethodDefinition injectMethod, InjectFlags flags, int localVarIDs = null ) : System | ||
injectTarget | MethodDefinition | The method that will be injected. |
injectMethod | MethodDefinition | The method which to inject. |
flags | InjectFlags | Injection flags that specify what values to pass to the injection method and how to inject it. |
localVarIDs | int |
/// An array of indicies of local variables to pass to the injection method. Used only if
/// |
return | System |