Наследование: 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)));