-Fixed DefaultValueHandling Populate bug

This commit is contained in:
James Newton-King
2012-09-01 15:23:17 +12:00
parent 2320d2d55e
commit 0714c05e6f
5 changed files with 109 additions and 7 deletions
@@ -205,7 +205,7 @@ namespace Newtonsoft.Json.Serialization
return false;
if (HasFlag(property.DefaultValueHandling.GetValueOrDefault(Serializer.DefaultValueHandling), DefaultValueHandling.Ignore)
&& MiscellaneousUtils.ValueEquals(memberValue, property.DefaultValue ?? ReflectionUtils.GetDefaultValue(property.PropertyType)))
&& MiscellaneousUtils.ValueEquals(memberValue, property.GetResolvedDefaultValue()))
return false;
return true;