-Fixed build
-Removed unused code
This commit is contained in:
@@ -357,7 +357,7 @@ namespace Newtonsoft.Json.Tests.Schema
|
||||
IList<JsonProperty> properties = base.CreateProperties(type, memberSerialization);
|
||||
|
||||
JsonPropertyCollection c = new JsonPropertyCollection(type);
|
||||
CollectionUtils.AddRange(c, (IEnumerable)properties.Where(m => m.PropertyName != "Root"));
|
||||
c.AddRange(properties.Where(m => m.PropertyName != "Root"));
|
||||
|
||||
return c;
|
||||
}
|
||||
@@ -473,9 +473,9 @@ namespace Newtonsoft.Json.Tests.Schema
|
||||
JsonSchemaGenerator generator = new JsonSchemaGenerator();
|
||||
generator.UndefinedSchemaIdHandling = UndefinedSchemaIdHandling.UseTypeName;
|
||||
generator.ContractResolver = new CamelCasePropertyNamesContractResolver()
|
||||
{
|
||||
#if !(SILVERLIGHT || NETFX_CORE || PORTABLE)
|
||||
IgnoreSerializableAttribute = true
|
||||
{
|
||||
#if !(SILVERLIGHT || NETFX_CORE || PORTABLE || PORTABLE40)
|
||||
IgnoreSerializableAttribute = true
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user