Custom property name provider
Sometimes it is desirable to omit certain properties and these can be filtered as shown below:
Note
The propertyInfo
parameter passed into the delegate provides full information
about the property in order to make an informed decision about what the property name
should be.
You could get information from custom attributes on the property to further drive your choice of property name.