ObjectDumper icon indicating copy to clipboard operation
ObjectDumper copied to clipboard

ExcludeProperties DumpOption doesn't include fields

Open CaptainDapper opened this issue 5 years ago • 1 comments

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.

CaptainDapper avatar Feb 24 '20 20:02 CaptainDapper

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

🧐

thomasgalliker avatar Mar 01 '20 09:03 thomasgalliker