static int _m_RunCommand(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                CommandTerminal.CommandShell gen_to_be_invoked = (CommandTerminal.CommandShell)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string _line = LuaAPI.lua_tostring(L, 2);

                    gen_to_be_invoked.RunCommand(_line);



                    return(0);
                }
                if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <CommandTerminal.CommandArg[]>(L, 3))
                {
                    string _command_name = LuaAPI.lua_tostring(L, 2);
                    CommandTerminal.CommandArg[] _arguments = (CommandTerminal.CommandArg[])translator.GetObject(L, 3, typeof(CommandTerminal.CommandArg[]));

                    gen_to_be_invoked.RunCommand(_command_name, _arguments);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to CommandTerminal.CommandShell.RunCommand!"));
        }