Inheritance: PatcherObject
Esempio n. 1
0
 public MethodReference ImportMethod(MethodPatcher toImport)
 {
     return mainModule.Import(toImport.methodDefinition);
 }
Esempio n. 2
0
 public MethodPatcher InsertCallBefore(Instruction before, MethodPatcher method)
 {
     return(InsertBefore(before, Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method))));
 }
Esempio n. 3
0
 public MethodPatcher InsertCallBefore(int before, MethodPatcher method)
 {
     return(InsertCallBefore(IlProc.Body.Instructions[before], method));
 }
Esempio n. 4
0
 public MethodPatcher InsertCallAfter(int after, MethodPatcher method)
 {
     return(InsertCallAfter(IlProc.Body.Instructions[after], method));
 }
Esempio n. 5
0
 public MethodPatcher InsertCallBeforeRet(MethodPatcher method)
 {
     return(InsertBefore(IlProc.Body.Instructions[IlProc.Body.Instructions.Count - 1], Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method))));
 }
Esempio n. 6
0
 public MethodPatcher AppendCall(MethodPatcher method)
 {
     return(Append(Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method))));
 }
Esempio n. 7
0
 public MethodPatcher InsertCallAfter(Instruction after, MethodPatcher method)
 {
     return(InsertAfter(after, Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method))));
 }
Esempio n. 8
0
		public MethodPatcher InsertCallBefore(int before, MethodPatcher method) => InsertCallBefore(IlProc.Body.Instructions[before], method);
Esempio n. 9
0
 public MethodReference ImportMethod(MethodPatcher toImport)
 {
     return(mainModule.Import(toImport.methodDefinition));
 }
Esempio n. 10
0
		public MethodPatcher InsertCallBefore(Instruction before, MethodPatcher method) => InsertBefore(before, Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method)));
Esempio n. 11
0
		public MethodPatcher InsertCallBeforeRet(MethodPatcher method) => InsertBefore(IlProc.Body.Instructions[IlProc.Body.Instructions.Count - 1],
																					   Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method)));
Esempio n. 12
0
		public MethodPatcher InsertCallAfter(int after, MethodPatcher method) => InsertCallAfter(IlProc.Body.Instructions[after], method);
Esempio n. 13
0
		public MethodPatcher InsertCallAfter(Instruction after, MethodPatcher method) => InsertAfter(after, Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method)));
Esempio n. 14
0
		public MethodPatcher AppendCall(MethodPatcher method) => Append(Instruction.Create(OpCodes.Call, rootAssemblyPatcher.ImportMethod(method)));