-Fixed deserializing a DataTable property
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user