Exemplo n.º 1
0
        static int _m_WriteObjectId(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    MongoDB.Bson.ObjectId _objectId; translator.Get(L, 2, out _objectId);

                    gen_to_be_invoked.WriteObjectId(_objectId);



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