Exemple #1
0
 /// <summary>
 /// Reads a BSON Int32 from the reader.
 /// </summary>
 /// <returns>An Int32.</returns>
 public override int ReadInt32()
 {
     if (Disposed)
     {
         ThrowObjectDisposedException();
     }
     VerifyBsonType("ReadInt32", BsonType.Int32);
     State = GetNextState();
     return(_buffer.ReadInt32());
 }