static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    MongoDB.Bson.Serialization.IdGenerators.AscendingGuidGenerator gen_ret = new MongoDB.Bson.Serialization.IdGenerators.AscendingGuidGenerator();
                    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.IdGenerators.AscendingGuidGenerator constructor!"));
        }
        static int _m_GenerateId(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 4 && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2)) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    long   _tickCount        = LuaAPI.lua_toint64(L, 2);
                    byte[] _machineProcessId = LuaAPI.lua_tobytes(L, 3);
                    int    _increment        = LuaAPI.xlua_tointeger(L, 4);

                    object gen_ret = gen_to_be_invoked.GenerateId(_tickCount, _machineProcessId, _increment);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && translator.Assignable <object>(L, 2) && translator.Assignable <object>(L, 3))
                {
                    object _container = translator.GetObject(L, 2, typeof(object));
                    object _document  = translator.GetObject(L, 3, typeof(object));

                    object gen_ret = gen_to_be_invoked.GenerateId(_container, _document);
                    translator.PushAny(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.IdGenerators.AscendingGuidGenerator.GenerateId!"));
        }
        static int _m_IsEmpty(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    object _id = translator.GetObject(L, 2, typeof(object));

                    bool gen_ret = gen_to_be_invoked.IsEmpty(_id);
                    LuaAPI.lua_pushboolean(L, gen_ret);



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