-Added XmlSerializer style Specified property support

This commit is contained in:
JamesNK
2010-11-25 08:17:22 +00:00
parent efc2310a3d
commit 2eb0d3bf48
7 changed files with 192 additions and 10 deletions
@@ -552,7 +552,12 @@ namespace Newtonsoft.Json.Serialization
// this could happen because of a JsonConverter against the type
if ((!useExistingValue || value != currentValue)
&& ShouldSetPropertyValue(property, value))
{
property.ValueProvider.SetValue(target, value);
if (property.SetIsSpecified != null)
property.SetIsSpecified(target, true);
}
}
private bool ShouldSetPropertyValue(JsonProperty property, object value)