Exemple #1
0
 private static Instruction[] GetCallArguments(MethodBody body, Instruction callInstruction)
 {
     var ilseq = new ILSequence();
     foreach (var i in body.Instructions)
     {
         ilseq.Append(i);
         if (i == callInstruction)
             break;
     }
     Instruction[] args = callInstruction.GetCallArguments(ilseq, false);
     return args;
 }