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