#pragma warning restore 618 /// <summary> /// Reads a BSON boolean from the reader. /// </summary> /// <returns>A Boolean.</returns> public override bool ReadBoolean() { if (Disposed) { ThrowObjectDisposedException(); } VerifyBsonType("ReadBoolean", BsonType.Boolean); State = GetNextState(); return _bsonStream.ReadBoolean(); }
static int _m_ReadBoolean(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); { bool gen_ret = gen_to_be_invoked.ReadBoolean( ); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }