public static MDbgEngine invoke_Method(this MDbgEngine engine, string moduleName, string typeName, string methodName, CorValue[] parameters) { var module = engine.module(moduleName); var function = engine.activeProcess().ResolveFunctionName(module, typeName, methodName); return(engine.invoke_Method(function.CorFunction, parameters)); }
public static MDbgEngine invoke_Method(this MethodInfo methodInfo, MDbgEngine engine, CorValue[] parameters) { // var methodInfo = debugger.module("mscorlib").type("System.Console").method("Write"); var module = engine.process().ResolveClass(methodInfo.DeclaringType.FullName).Module; var corFunction = module.GetFunctionFromToken(methodInfo.MetadataToken); return(engine.invoke_Method(corFunction, parameters)); }
public static MDbgEngine console_WriteLine(this MDbgEngine engine) { return(engine.invoke_Method("mscorlib", "System.Console", "WriteLine")); }
public static MDbgEngine invoke_Method(this MDbgEngine engine, string moduleName, string typeName, string methodName, params string[] stringValues) { var corValues = engine.corValues(stringValues); return(engine.invoke_Method(moduleName, typeName, methodName, corValues)); }
public static MDbgEngine invoke_Method(this MDbgEngine engine, CorFunction function, params string[] stringValues) { var corValues = engine.corValues(stringValues); return(engine.invoke_Method(function, corValues)); }