-Fixed objects created with paramatized constructors to not set properties that aren't in JSON

This commit is contained in:
JamesNK
2011-04-21 23:18:19 +00:00
parent 1e75151dda
commit 2c190ec438
2 changed files with 34 additions and 2 deletions
@@ -865,8 +865,7 @@ namespace Newtonsoft.Json.Serialization
Type objectType = contract.UnderlyingType;
// create a dictionary to put retrieved values into
IDictionary<JsonProperty, object> propertyValues = contract.Properties.Where(p => !p.Ignored).ToDictionary(kv => kv, kv => (object)null);
IDictionary<JsonProperty, object> propertyValues = new Dictionary<JsonProperty, object>();
bool exit = false;
do