You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that replacing the ExpandoObject in the first code sample with a class with typed properties produces the correct output (same as the output the second code sample).
The text was updated successfully, but these errors were encountered:
I have also tried deriving from ChainedObjectGraphVisitor and adding it to the builder using WithEmissionPhaseObjectGraphVisitor. The overridden EnterMapping method does to appear to get called for dynamic properties.
It seems to work correctly if I override EnterMapping(IObjectDescriptor key, IObjectDescriptor value, IEmitter context) instead of EnterMapping(IPropertyDescriptor key, IObjectDescriptor value, IEmitter context) and compare the value with the default for value.Type rather than key.Type. e.g.
The DefaultValuesHandling behaviour is not being applied to dynamic properties.
To reproduce, run the following code on version 8.0.0
The output is:
We could achieve the expected results in version 7.0.0 using the following code:
The output (as we would expect) is:
Note that replacing the ExpandoObject in the first code sample with a class with typed properties produces the correct output (same as the output the second code sample).
The text was updated successfully, but these errors were encountered: