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


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



                {
                    MongoDB.Bson.Serialization.BsonDeserializationContext _context = (MongoDB.Bson.Serialization.BsonDeserializationContext)translator.GetObject(L, 2, typeof(MongoDB.Bson.Serialization.BsonDeserializationContext));
                    MongoDB.Bson.Serialization.BsonDeserializationArgs    _args; translator.Get(L, 3, out _args);

                    sbyte gen_ret = gen_to_be_invoked.Deserialize(_context, _args);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    MongoDB.Bson.Serialization.Serializers.SByteSerializer gen_ret = new MongoDB.Bson.Serialization.Serializers.SByteSerializer();
                    translator.Push(L, gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <MongoDB.Bson.BsonType>(L, 2))
                {
                    MongoDB.Bson.BsonType _representation; translator.Get(L, 2, out _representation);

                    MongoDB.Bson.Serialization.Serializers.SByteSerializer gen_ret = new MongoDB.Bson.Serialization.Serializers.SByteSerializer(_representation);
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to MongoDB.Bson.Serialization.Serializers.SByteSerializer constructor!"));
        }
        static int _g_get_Representation(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                MongoDB.Bson.Serialization.Serializers.SByteSerializer gen_to_be_invoked = (MongoDB.Bson.Serialization.Serializers.SByteSerializer)translator.FastGetCSObj(L, 1);
                translator.PushMongoDBBsonBsonType(L, gen_to_be_invoked.Representation);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _m_WithRepresentation(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    MongoDB.Bson.BsonType _representation; translator.Get(L, 2, out _representation);

                    MongoDB.Bson.Serialization.Serializers.SByteSerializer gen_ret = gen_to_be_invoked.WithRepresentation(_representation);
                    translator.Push(L, gen_ret);



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