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

                MongoDB.Bson.IO.BsonWriterSettings gen_to_be_invoked = (MongoDB.Bson.IO.BsonWriterSettings)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.MaxSerializationDepth = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_IsFrozen(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                MongoDB.Bson.IO.BsonWriterSettings gen_to_be_invoked = (MongoDB.Bson.IO.BsonWriterSettings)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsFrozen);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _s_set_GuidRepresentation(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                MongoDB.Bson.IO.BsonWriterSettings gen_to_be_invoked = (MongoDB.Bson.IO.BsonWriterSettings)translator.FastGetCSObj(L, 1);
                MongoDB.Bson.GuidRepresentation    gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.GuidRepresentation = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _m_Freeze(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                MongoDB.Bson.IO.BsonWriterSettings gen_to_be_invoked = (MongoDB.Bson.IO.BsonWriterSettings)translator.FastGetCSObj(L, 1);



                {
                    MongoDB.Bson.IO.BsonWriterSettings gen_ret = gen_to_be_invoked.Freeze(  );
                    translator.Push(L, gen_ret);



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