-Fixed deserializing a DataTable property

This commit is contained in:
JamesNK
2011-01-28 07:53:57 +00:00
parent 868d6d3948
commit 05a4395a94
5 changed files with 65 additions and 10 deletions
@@ -78,6 +78,8 @@ namespace Newtonsoft.Json.Converters
{
DataTable dt = (DataTable)converter.ReadJson(reader, typeof (DataTable), null, serializer);
ds.Tables.Add(dt);
reader.Read();
}
return ds;
@@ -111,8 +111,6 @@ namespace Newtonsoft.Json.Converters
reader.Read();
}
reader.Read();
return dt;
}
+1 -1
View File
@@ -70,7 +70,7 @@ namespace Newtonsoft.Json
_tokenType = tokenType;
_schemas = schemas;
_requiredProperties = schemas.SelectMany(GetRequiredProperties).Distinct().ToDictionary(p => p, p => false);
_requiredProperties = schemas.SelectMany<JsonSchemaModel, string>(GetRequiredProperties).Distinct().ToDictionary(p => p, p => false);
}
private IEnumerable<string> GetRequiredProperties(JsonSchemaModel schema)