Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/Newtonsoft.Json.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Newton-King <james@newtonking.com>2012-03-18 07:24:30 +0400
committerJames Newton-King <james@newtonking.com>2012-03-18 07:24:30 +0400
commit8471c4ffe1cb800a4afd747b71dbb5ba31d5ca90 (patch)
treec497bfaf1258541fd9fc0a0dd0fc358fa4d71c69 /Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs
parent9c7fb730f2774d116398f0dcc045b0c386b19a6b (diff)
-Added IgnoreSerializableInterface to DefaultContractResolver
-Changed serializing ISerializable types under partial trust to error to fix security issue -Fixed LinqBridge collision error in .NET 2.0 by moving types to a different namespace -Fixed JObject.Keys error when object has no items
Diffstat (limited to 'Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs')
-rw-r--r--Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs b/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs
index 6f623e5..181871b 100644
--- a/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs
+++ b/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs
@@ -24,17 +24,20 @@
#endregion
using System;
-using System.Linq;
using System.Globalization;
using System.ComponentModel;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Utilities;
using Newtonsoft.Json.Serialization;
-using System.Reflection;
#if NETFX_CORE
using IConvertible = Newtonsoft.Json.Utilities.Convertible;
#endif
+#if NET20
+using Newtonsoft.Json.Utilities.LinqBridge;
+#else
+using System.Linq;
+#endif
namespace Newtonsoft.Json.Schema
{