From 545600659670afce9d683dcb7d498e93de93c916 Mon Sep 17 00:00:00 2001 From: manuc66 Date: Sat, 10 Sep 2022 23:32:17 +0200 Subject: [PATCH] remove commented code --- JsonSubTypes/JsonSubtypes.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/JsonSubTypes/JsonSubtypes.cs b/JsonSubTypes/JsonSubtypes.cs index 672bad6..bfc8980 100644 --- a/JsonSubTypes/JsonSubtypes.cs +++ b/JsonSubTypes/JsonSubtypes.cs @@ -211,12 +211,7 @@ private static Type GetElementType(Type arrayOrGenericContainer) private object ReadObject(JsonReader reader, Type objectType, JsonSerializer serializer) { - // I would prefer to create a new reader, but can't work out how to - // This seems a reasonable alternative - https://github.com/JamesNK/Newtonsoft.Json/issues/1605#issuecomment-602673364 - // var savedDateParseSettings = reader.DateParseHandling; - // reader.DateParseHandling = DateParseHandling.None; var jObject = JObject.Load(reader); - // reader.DateParseHandling = savedDateParseSettings; var targetType = GetType(jObject, objectType, serializer) ?? objectType;