Esempio n. 1
0
 /// <summary>
 /// Reads a BSON ObjectId from the reader.
 /// </summary>
 /// <returns>An ObjectId.</returns>
 public override ObjectId ReadObjectId()
 {
     if (Disposed) { ThrowObjectDisposedException(); }
     VerifyBsonType("ReadObjectId", BsonType.ObjectId);
     State = GetNextState();
     return _bsonStream.ReadObjectId();
 }
        static int _m_ReadObjectId(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    MongoDB.Bson.ObjectId gen_ret = gen_to_be_invoked.ReadObjectId(  );
                    translator.Push(L, gen_ret);



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