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.
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.