private static IEnumerable <MethodBase> MethodCalls(this MethodInfo methodInfo) { return (MethodBodyInfo .Create(methodInfo) .Calls()); }
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("}"); }