diff options
author | JamesNK <james@newtonking.com> | 2011-04-22 03:18:19 +0400 |
---|---|---|
committer | JamesNK <james@newtonking.com> | 2011-04-22 03:18:19 +0400 |
commit | 2c190ec438187affa34b161bfecf65bcf626cacb (patch) | |
tree | 518e41547e55733e7a77297f007d470dd04cfd05 /Src/Newtonsoft.Json | |
parent | 1e75151dda175d78d5779b5d821f1f5b1d02d110 (diff) |
-Fixed objects created with paramatized constructors to not set properties that aren't in JSON
Diffstat (limited to 'Src/Newtonsoft.Json')
-rw-r--r-- | Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs b/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs index 97b41b5..1ac9ee3 100644 --- a/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs +++ b/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs @@ -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
|