private static void WriteBoolean(PropertyInfo property, object result, BsonDocument document) { BsonBoolean bsonBoolean = document.GetValue(property.Name).AsBoolean; property.SetValue(result, bsonBoolean.ToBoolean(), null); }