Custom property name provider
You may have a dictionary whose key names do not match properties on the object. This method allows you to provide a custom dictionary key.
Note
The propertyInfo
parameter passed into the delegate provides full information
about the property in order to make an informed decision about what the dictionary key
to lookup should be (for a specific property of the target object)
You could get information from custom attributes on the property to further drive your choice of dictionary key.