Custom property filter
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 that is potentially being added to the dictionary
The value
parameter is the value of the property.