ObjectDumper
ObjectDumper copied to clipboard
ExcludeProperties DumpOption doesn't include fields
It's unintuitive, although it's named properly. I had expected my ExcludeProperties list to remove any fields with the same name as well as properties with the name.
I would suggest renaming ExcludeProperties to simply "Exclude" and removing any member at all from the output. Or, add an ExcludeFields option but that seems redundant, though it's the easy/lazy choice.
I would also prefere the Exclude way but I’m 100% convinced that many people would like to have separated exclude options (for fields and for properties). What about this:
- Exclude (for fields and properties, and ???)
- ExcludeProperties
- ExcludeFields
🧐