From 57a3a65464e80839e3447e1a647311e5e3633321 Mon Sep 17 00:00:00 2001 From: Damir Ainullin Date: Sun, 10 Mar 2019 21:18:25 +0000 Subject: [PATCH] Remove duplication of memberName calculation (#1995) --- .../Serialization/JsonSerializerInternalReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs b/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs index d286f7b0..6ad8abee 100644 --- a/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs +++ b/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs @@ -2179,7 +2179,7 @@ namespace Newtonsoft.Json.Serialization CreatorPropertyContext creatorPropertyContext = new CreatorPropertyContext { - Name = reader.Value.ToString(), + Name = memberName, ConstructorProperty = contract.CreatorParameters.GetClosestMatchProperty(memberName), Property = contract.Properties.GetClosestMatchProperty(memberName) };