Пример #1
0
        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));
        }
Пример #2
0
        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));
        }
Пример #3
0
 public static MDbgEngine console_WriteLine(this MDbgEngine engine)
 {
     return(engine.invoke_Method("mscorlib", "System.Console", "WriteLine"));
 }
Пример #4
0
        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));
        }
Пример #5
0
        public static MDbgEngine invoke_Method(this MDbgEngine engine, CorFunction function, params string[] stringValues)
        {
            var corValues = engine.corValues(stringValues);

            return(engine.invoke_Method(function, corValues));
        }