Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
manuc66 committed Sep 10, 2022
1 parent b4528f0 commit 5456006
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions JsonSubTypes/JsonSubtypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5456006

Please sign in to comment.