Remove duplication of memberName calculation (#1995)

This commit is contained in:
Damir Ainullin
2019-03-10 14:18:25 -07:00
committed by James Newton-King
parent b371ab1b0e
commit 57a3a65464
@@ -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)
};