예제 #1
0
 private static IEnumerable <MethodBase> MethodCalls(this MethodInfo methodInfo)
 {
     return
         (MethodBodyInfo
          .Create(methodInfo)
          .Calls());
 }
예제 #2
0
        private static void AppendMethod(MethodBase method, StringBuilder sb)
        {
            var res = MethodBodyInfo.Create(method);

            sb.AppendLine($"{res.MethodToString} // 0X{res.Identity:X2}");
            sb.AppendLine("{");
            foreach (var instr in res.Instructions)
            {
                sb.AppendLine("   " + instr);
            }
            sb.AppendLine("}");
        }