Esempio n. 1
0
#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(_buffer.ReadBoolean());
        }