Пример #1
0
        static int _m_SayHelloWithRefParamAndReturnString(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            CSModelWithAttribute __cl_gen_to_be_invoked = (CSModelWithAttribute)translator.FastGetCSObj(L, 1);


            try {
                {
                    string s = LuaAPI.lua_tostring(L, 2);

                    string __cl_gen_ret = __cl_gen_to_be_invoked.SayHelloWithRefParamAndReturnString(ref s);
                    LuaAPI.lua_pushstring(L, __cl_gen_ret);
                    LuaAPI.lua_pushstring(L, s);



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