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

                MongoDB.Bson.Serialization.Conventions.IConvention gen_to_be_invoked = (MongoDB.Bson.Serialization.Conventions.IConvention)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.Name);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemple #2
0
        static int _m_Add(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                MongoDB.Bson.Serialization.Conventions.ConventionPack gen_to_be_invoked = (MongoDB.Bson.Serialization.Conventions.ConventionPack)translator.FastGetCSObj(L, 1);



                {
                    MongoDB.Bson.Serialization.Conventions.IConvention _convention = (MongoDB.Bson.Serialization.Conventions.IConvention)translator.GetObject(L, 2, typeof(MongoDB.Bson.Serialization.Conventions.IConvention));

                    gen_to_be_invoked.Add(_convention);



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