diff --git a/Src/Newtonsoft.Json.sln.DotSettings b/Src/Newtonsoft.Json.sln.DotSettings index c97ec47f..2c4af6be 100644 --- a/Src/Newtonsoft.Json.sln.DotSettings +++ b/Src/Newtonsoft.Json.sln.DotSettings @@ -2,5 +2,7 @@ False True False + True True + True \ No newline at end of file diff --git a/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs b/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs index 2ba6a6d8..c378a8a4 100644 --- a/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs +++ b/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs @@ -893,7 +893,7 @@ namespace Newtonsoft.Json.Utilities { propertyInfos = (new Type[] { targetType }) .Concat(targetType.GetInterfaces()) - .SelectMany(i => i.GetProperties()).ToList(); + .SelectMany(i => i.GetProperties(bindingAttr)).ToList(); } GetChildPrivateProperties(propertyInfos, targetType, bindingAttr);