Beispiel #1
0
 private static string PrintInlineMethod(MSILInstruction instruction, Module module)
 {
     var methodBase = module.ResolveMethod((int)instruction.MetadataToken);
     return instruction.OpCode.Name + " " + methodBase.ReflectedType + "::" + methodBase.Name;
 }
Beispiel #2
0
 private void ReadInlineMethod(byte[] array, int i,  MSILInstruction instruction)
 {
     instruction.Lenght = 4;
     Int64 arg = 0;
     for (int j = 0; j < instruction.Lenght; ++j)
     {
         Int64 v = array[(i + 1) + j];
         arg += v << (j * 8);
     }
     instruction.MetadataToken = arg;
 }