예제 #1
0
 protected internal InjectionData(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject)
 {
     Target   = tar     ;
     Position = pos     ;
     ToInject = toInject;
 }
예제 #2
0
 public static Instruction NewInstructionOffset(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, int offset)
 {
     return new Instruction(tar, pos, toInject,  offset);
 }
예제 #3
0
 internal Method(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, int retIndex)
     : base(tar, pos, toInject)
 {
     RetIndex = retIndex;
 }
예제 #4
0
 internal Instruction(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, int indexOffset)
     : base(tar, pos, toInject)
 {
     IndexOffset = indexOffset;
 }
예제 #5
0
 public static Instruction NewInstructionIndex(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, int index )
 {
     return new Instruction(tar, pos, toInject, -index );
 }
예제 #6
0
 public Call(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, MethodReference callee, int cpos = 0)
     : base(tar, pos, toInject)
 {
     Callee       = callee;
     CallPosition = cpos  ;
 }
예제 #7
0
 public static Call NewCall(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, MethodReference callee, int cpos = 0)
 {
     return new Call(tar, pos, toInject, callee, cpos);
 }
예제 #8
0
 public Call(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, MethodReference callee, int cpos = 0)
     : base(tar, pos, toInject)
 {
     Callee       = callee;
     CallPosition = cpos;
 }
예제 #9
0
 public static Call NewCall(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, MethodReference callee, int cpos = 0)
 {
     return(new Call(tar, pos, toInject, callee, cpos));
 }
예제 #10
0
 internal Method(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, int retIndex)
     : base(tar, pos, toInject)
 {
     RetIndex = retIndex;
 }
예제 #11
0
 protected internal InjectionData(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject)
 {
     Target   = tar;
     Position = pos;
     ToInject = toInject;
 }
예제 #12
0
 public static Instruction NewInstructionOffset(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, int offset)
 {
     return(new Instruction(tar, pos, toInject, offset));
 }
예제 #13
0
 public static Instruction NewInstructionIndex(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, int index)
 {
     return(new Instruction(tar, pos, toInject, -index));
 }
예제 #14
0
 internal Instruction(MethodDefinition tar, InjectionPosition pos, ILInstruction[] toInject, int indexOffset)
     : base(tar, pos, toInject)
 {
     IndexOffset = indexOffset;
 }