예제 #1
0
        static int _g_get_ChildSerializer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                MongoDB.Bson.Serialization.IChildSerializerConfigurable gen_to_be_invoked = (MongoDB.Bson.Serialization.IChildSerializerConfigurable)translator.FastGetCSObj(L, 1);
                translator.PushAny(L, gen_to_be_invoked.ChildSerializer);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
예제 #2
0
        static int _m_WithChildSerializer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    MongoDB.Bson.Serialization.IBsonSerializer _childSerializer = (MongoDB.Bson.Serialization.IBsonSerializer)translator.GetObject(L, 2, typeof(MongoDB.Bson.Serialization.IBsonSerializer));

                    MongoDB.Bson.Serialization.IBsonSerializer gen_ret = gen_to_be_invoked.WithChildSerializer(_childSerializer);
                    translator.PushAny(L, gen_ret);



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